Condividi tramite


SfcReferenceCollection<K,T,S> Class

Definition

The Sfc collection base for all domain collections. It abstracts all the necesssary handshaking between the parent object, and the collection or element objects.

public abstract class SfcReferenceCollection<K,T,S> : Microsoft.SqlServer.Management.Sdk.Sfc.IReadOnlyCollection<T>, Microsoft.SqlServer.Management.Sdk.Sfc.IReadOnlyDictionary<K,T>, System.Collections.Generic.IEnumerable<T>, System.ComponentModel.IListSource where K : IComparable<K> where T : SfcInstance where S : SfcInstance
type SfcReferenceCollection<'K, 'T, 'S (requires 'K :> IComparable<'K> and 'T :> SfcInstance and 'S :> SfcInstance)> = class
    interface IReadOnlyDictionary<'K, 'T (requires 'K :> IComparable<'K> and 'T :> SfcInstance)>
    interface IReadOnlyCollection<'T (requires 'T :> SfcInstance)>
    interface IReadOnlyCollection
    interface IEnumerable
    interface seq<'T (requires 'T :> SfcInstance)>
    interface IListSource
Public MustInherit Class SfcReferenceCollection(Of K, T, S)
Implements IEnumerable(Of T), IListSource, IReadOnlyCollection(Of T), IReadOnlyDictionary(Of K, T)

Type Parameters

K

The key type of the target collection.

T

The element type of the target collection.

S

The type of the collection owner.

Inheritance
SfcReferenceCollection<K,T,S>
Implements

Constructors

SfcReferenceCollection<K,T,S>(S, ISfcReferenceCollectionResolver<T,S>, IComparer<K>)

Create a collection of instance references.

Properties

Count
Item[K]
Keys
Values

Methods

Contains(T)
ContainsKey(K)
CopyTo(T[], Int32)
GetEnumerator()
GetKeyFromValue(T)

Derived types implement this to obtain a key from the item value.

Refresh()
TryGetValue(K, T)

Explicit Interface Implementations

IEnumerable<T>.GetEnumerator()
IListSource.ContainsListCollection
IListSource.GetList()

Applies to