Property ThrowWhenMainSourceUnchanged
ThrowWhenMainSourceUnchanged
Gets or initializes a value indicating whether the main pipeline of a FileRepoTransaction add call should throw a FileSourceUnchangedException when running the pipeline results in no changes to the source file. Default value is false.
Declaration
public bool ThrowWhenMainSourceUnchanged { get; init; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
This property only applies to the main pipeline of a transactional add; it has no effect on variant pipelines (use AliasWhenVariantSourceUnchanged for those). When true and no processor reports changes, the exception is propagated to the caller so the add can be aborted (the main file cannot be omitted from a file group).