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.

C#
public object Resolve(string name);

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

.NET Framework 4.8.1 a ďalšie verzie
Produkt Verzie
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

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.

C#
public object Resolve(string name, out bool isFullyInitialized);

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

.NET Framework 4.8.1 a ďalšie verzie
Produkt Verzie
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10