Assembly: Cognex.VisionPro3D.Core (in Cognex.VisionPro3D.Core.dll) Version: 69.0.0.0
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.
- foundName
- Type: System String
If this method returns true, foundName contains the formatted space name. Otherwise, it contains "".
Return Value
Type: BooleanTrue if the given spaceName is unique in this tree. False if the name is not found in the tree.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The pathnameFormat value is not a member of CogSpaceTreePathnameConstants. |
| CogSpaceTreeInvalidNameSyntaxException | spaceName is not a legal space name. |
| CogSpaceTreeNameNotUniqueException | spaceName is a nonqualified space name and more than one instance of it exists in this tree. |
You can use this method to verify that a given space name is legal and exists in the coordinate space tree. It returns true if the given spaceName is a unique name in this tree; false if spaceName cannot be found.
This method is is similar to LookUpName(String, CogSpaceTreePathnameConstants), however it does not generate an error if spaceName does not exist in the tree.