Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 75.1.0.0
Parameters
- spaceName
- Type: System String
A valid nonqualified or fully-qualified space name to change. This space must exist in this CogCoordinateSpaceTree.
- newSpaceName
- Type: System String
A valid nonqualified or fully-qualified space name for the new coordinate space.
| Exception | Condition |
|---|---|
| CogSpaceTreeInvalidNameSyntaxException | newSpaceName or spaceName is not a valid space name. |
| CogSpaceTreeDuplicateChildNameException | newSpaceName is already the name of a child of spaceName's parent space. |
| CogSpaceTreeNotUniqueException | spaceName is a nonqualified space name and more than one instance of it exists in this tree. |
Change the name of a space in this tree. If the given space name is a fully-qualified pathname, ChangeName(String, String) modifies only the trailing nonqualified name. The new space name must meet the syntactical requirements of nonqualified or fully-qualified space names.
Note: If you want to modify the root name, the RootName property permits less restrictive space names.