Bearbeiten

Freigeben über


IXamlNameResolver.Resolve Method

Definition

Resolves an object from a name reference.

Overloads

Resolve(String)

Resolves an object from a name reference.

Resolve(String, Boolean)

Resolves an object from a name reference, and provides a tracking value that reports whether the object is fully initialized for object graph purposes.

Resolve(String)

Resolves an object from a name reference.

public:
 System::Object ^ Resolve(System::String ^ name);
public object Resolve (string name);
abstract member Resolve : string -> obj
Public Function Resolve (name As String) As Object

Parameters

name
String

The name reference to resolve.

Returns

The resolved object; or null.

Remarks

If a value is returned as null, a forward reference might exist. Implementations that want to support forward references can use the FixupToken pattern through the GetFixupToken and IsFixupTokenAvailable APIs.

See also

Applies to

Resolve(String, Boolean)

Resolves an object from a name reference, and provides a tracking value that reports whether the object is fully initialized for object graph purposes.

public:
 System::Object ^ Resolve(System::String ^ name, [Runtime::InteropServices::Out] bool % isFullyInitialized);
public object Resolve (string name, out bool isFullyInitialized);
abstract member Resolve : string * bool -> obj
Public Function Resolve (name As String, ByRef isFullyInitialized As Boolean) As Object

Parameters

name
String

The name reference to resolve.

isFullyInitialized
Boolean

When this method returns, true if the returned object has any dependencies on unresolved references; otherwise, false.

Returns

An object that provides a token for lookup behavior to be evaluated later.

Applies to