Click or drag to resize

IReplicationTargetAddCleanupExemption Method


Adds a new Cleanup Exempt Location to this replication target.

Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.492
Syntax
IReplicationCleanupExemption AddCleanupExemption(
	string locationPath,
	bool exemptAllFiles,
	string exemptSearchPatters = "",
	bool exemptDescendants = true
)

Parameters

locationPath  String
Path of exemption that is relative to replication destination location
exemptAllFiles  Boolean
Whether to excude all Files in this location from cleanup
exemptSearchPatters  String  (Optional)
The search pattern for Files that will be excluded from cleanup. Only applies when the exemptAllFiles paramter value is false
exemptDescendants  Boolean  (Optional)
Whether to exclude all descendant Directories of this location from cleanup

Return Value

IReplicationCleanupExemption
Newly added Cleanup Exempt Location
Exceptions
ExceptionCondition
ArgumentNullExceptionWhen location path is null or empty
Remarks

The locationPath value doesn't have to point to an existing location when calling this method. However, if this location still doesn't exist during replication, an error will be thrown.

See Also