SfcMetadataRelation.Resolve Method

Definition

Overloads

Resolve(Object)

Helper method to resolve references If the metadata relation is a reference relationship, it will use the reference attribute's resolver to return the target instances. If the metadata relation is a simple property value, it will return the value itself.

Resolve<T,S>(S)

Helper method to resolve a single-target reference. It returns a strongly-typed instance.

Resolve(Object)

Helper method to resolve references If the metadata relation is a reference relationship, it will use the reference attribute's resolver to return the target instances. If the metadata relation is a simple property value, it will return the value itself.

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

Parameters

instance
Object

Returns

The target value.

Applies to

Resolve<T,S>(S)

Helper method to resolve a single-target reference. It returns a strongly-typed instance.

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.

Parameters

instance
S

The source instance to resolve for.

Returns

T

The target instance.

Applies to