Partager via


SfcReferenceAttribute.Resolve Method

Definition

Overloads

Resolve(Object)

Resolve a single target object from the given source object. If a custom resolver interface is defined, it uses that. Otherwise if a custom resolver delegate helper is defined it uses that. In the absence of custom resolvers, it evaluates the given Urn path expression template with arguments.

Resolve<T,S>(S)

Resolve a strongly-typed single target object from the given source object. If a custom resolver interface is defined, it uses that. Otherwise if a custom resolver delegate helper is defined it uses that. In the absence of custom resolvers, it evaluates the given Urn path expression template with arguments.

Resolve(Object)

Resolve a single target object from the given source object. If a custom resolver interface is defined, it uses that. Otherwise if a custom resolver delegate helper is defined it uses that. In the absence of custom resolvers, it evaluates the given Urn path expression template with arguments.

public object Resolve (object instance);
member this.Resolve : obj -> obj
Public Function Resolve (instance As Object) As Object

Parameters

instance
Object

The source instance to resolve from.

Returns

The resolved target instance according to the rules mentioned, or null if there is no custom resolver or valid Urn path given.

Applies to

Resolve<T,S>(S)

Resolve a strongly-typed single target object from the given source object. If a custom resolver interface is defined, it uses that. Otherwise if a custom resolver delegate helper is defined it uses that. In the absence of custom resolvers, it evaluates the given Urn path expression template with arguments.

public T Resolve<T,S> (S instance);
member this.Resolve : 'S -> 'T
Public Function Resolve(Of T, S) (instance As S) As T

Type Parameters

T

The type of the target instance.

S

The type of the source instance to resolve from.

Parameters

instance
S

The source instance to resolve from.

Returns

T

The resolved target instance according to the rules mentioned, or null if there is no custom resolver or valid Urn path given.

Applies to