company logo

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

Enumerator details

  1. 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
  2. ReplaceDirect - Copy direct values, only

    Only attributes and base structures will be copied.

    Code: -1
    to list
  3. ReplaceNone - No replacements
    Code: 0
    to list
  4. 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
  5. 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
  6. 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