Returns the name of the given space's parent. The parent name for the root space is the empty name ("") because the root space has no parent.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 73.0.0.0
Syntax
Parameters
- spaceName
- Type: System String
A valid nonqualified or fully-qualified space name to find in this coordinate space tree.
- pathnameFormat
- Type: Cognex.VisionPro CogSpaceTreePathnameConstants
A CogSpaceTreePathnameConstants value that indicates how the returned name should be formatted.
Return Value
Type: StringThe parent space name.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | pathnameFormat value is not a member of CogSpaceTreePathnameConstants. |
| CogSpaceTreeInvalidNameSyntaxException | spaceName value is not a legal space name. |
| CogSpaceTreeNotUniqueException | spaceName is a nonqualified space name and more than one instance of it exists in this tree. |
Remarks
Returns the name of the given space's parent. Because the root space has no parent, its parent space name is the empty name string "".
See Also