ReplaceOptions - Replace options
Replace options are passed to copy operations in order to control the copy behavior. Usually, a replace option and a copy type can be passed.
Enumarators overview
- ReplaceAll
(2) - Replace all
- ReplaceDirect
(-1) - Copy direct values, only
- ReplaceGUID
(-2) - Copy GUID value
- ReplaceLocal
(1) - Copy local resources
- ReplaceNoCreate
(99) - Do not create new instances
- ReplaceNone
(0) - No replacements
Enumerator details
-
ReplaceGUID - Copy GUID value
When this value is set, GUID settings from the source are copied. Usually, GUIDs are created when creating the copy for an instance carrying a GUID.
Code: -2
to list -
ReplaceDirect - Copy direct values, only
Only attributes and base structures will be copied.
Code: -1
to list -
ReplaceLocal - Copy local resources
When passing this value as replace option, only local resources of an instance will be copied, i.e. relationships to their instances and all instances owned by the instance.
Code: 1
to list -
ReplaceAll - Replace all
When all is set, local and global instances will be copied and replaced. Since this may cause unlimited recursion, this option should not be used for copying instances.
When passing this option as copy option, it indicates, that instances and relationships are to be copied.
Code: 2
to list -
ReplaceNoCreate - Do not create new instances
Links to related instances will be copied (updated) only, when instances do already exist in the target location.
Code: 99
to list