Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 75.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
An optional parameter through which you can obtain the space name, formatted according to the pathnameFormat setting. If VerifyName(String, CogSpaceTreePathnameConstants, String ) returns False, foundName contains "".
Return Value
Type: BooleanTrue if the given spaceName is unique. False if the name is not found in the tree.
| 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. |
You can use VerifyName(String, CogSpaceTreePathnameConstants, String ) 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.
VerifyName(String, CogSpaceTreePathnameConstants, String ) is similar to LookUpName(String, CogSpaceTreePathnameConstants), however it does not generate an error if the specified spaceName does not exist in the tree.