CoordinateSpaceTree VerifyName Method Cognex VisionPro 9.10

Return true if the given SpaceName is a unique name in this tree. Return false if SpaceName cannot be found. The formatted name, or "", can be obtained through the optional FoundName argument.

Namespace: Cognex.Vision
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.10.0.0
Syntax

public bool VerifyName(
	string spaceName,
	SpaceTreePathnameConstants pathnameFormat,
	out string foundName
)

Parameters

spaceName
Type: System String
A valid nonqualified or fully-qualified space name to find in this coordinate space tree.
pathnameFormat
Type: Cognex.Vision SpaceTreePathnameConstants
A SpaceTreePathnameConstants 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 returns False, foundName contains "".

Return Value

Type: Boolean

True if the given spaceName is unique. False if the name is not found in the tree.

Exceptions

ExceptionCondition
ArgumentExceptionpathnameFormat value is not a member of SpaceTreePathnameConstants.
SpaceTreeExceptionspaceName value is not a legal space name.
SpaceTreeExceptionspaceName is a nonqualified space name and more than one instance of it exists in this tree.
Remarks

You can use VerifyName 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 is similar to LookUpName, however it does not generate an error if the specified spaceName does not exist in the tree.

See Also