Udostępnij za pośrednictwem


SfcMetadataRelation.ResolveCollection Method

Definition

Overloads

ResolveCollection(Object)

Helper method to resolve reference collections. If the metadata relation is a reference collection relationship, it will enumerate the target collection instances. If the metadata relation is a simple property value, it will enumerate the value itself.

ResolveCollection<T,S>(S)

Helper method to resolve reference collections. It yields strongly-typed instances. Any enumerated values which are not compatible as type T are skipped over.

ResolveCollection(Object)

Helper method to resolve reference collections. If the metadata relation is a reference collection relationship, it will enumerate the target collection instances. If the metadata relation is a simple property value, it will enumerate the value itself.

public System.Collections.IEnumerable ResolveCollection (object instance);
member this.ResolveCollection : obj -> System.Collections.IEnumerable
Public Function ResolveCollection (instance As Object) As IEnumerable

Parameters

instance
Object

The source instance to resolve for.

Returns

The target instance enumeration.

Applies to

ResolveCollection<T,S>(S)

Helper method to resolve reference collections. It yields strongly-typed instances. Any enumerated values which are not compatible as type T are skipped over.

public System.Collections.Generic.IEnumerable<T> ResolveCollection<T,S> (S instance);
member this.ResolveCollection : 'S -> seq<'T>
Public Function ResolveCollection(Of T, S) (instance As S) As IEnumerable(Of T)

Type Parameters

T

The type of the target enumeration.

S

The type of the source instance.

Parameters

instance
S

The source instance to resolve for.

Returns

The target values enumeration.

Applies to