CoordinateSpaceTree ResolvePartialName Method Cognex VisionPro 9.10

Use the given StartingSpaceName to resolve any ambiguity in NameToResolve, and return a name suitable for lookup in this tree. Note that a partial name, like ".", is ambiguous without a specified starting space.

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

public string ResolvePartialName(
	string startingSpaceName,
	string nameToResolve
)

Parameters

startingSpaceName
Type: System String
The starting space name used to resolve nameToResolve , if it is a partially-qualified coordinate space name.
nameToResolve
Type: System String
The coordinate space name to resolve. If . is a partially-qualified name, ResolvePartialName resolves it by using the startingSpaceName value. Otherwise, ResolvePartialName ignores startingSpaceName and returns a copy of the original name.

Return Value

Type: String

nameToResolve as a nonqualified or fully-qualified pathname.

Exceptions

ExceptionCondition
SpaceTreeExceptionstartingSpaceName value is not a [legal space name].
SpaceTreeExceptionstartingSpaceName is a nonqualified space name and more than one instance of it exists in this tree.
Remarks

Uses the given startingSpaceName to resolve any ambiguity in

nameToResolve , and returns a name suitable for lookup in this tree. Note that a partial name , such as ".", is ambiguous without a specified starting space name. This is the only method that can accept partially-qualified space names.

See Also