Export (0) Print
Expand All

SfcReferenceCollection<K, T, S> Class

Represents the base for all domain collections.

  Microsoft.SqlServer.Management.Sdk.Sfc.SfcReferenceCollection<K, T, S>

Namespace:  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)

public abstract class SfcReferenceCollection<K, T, S> : IReadOnlyDictionary<K, T>, 
	IReadOnlyCollection<T>, IReadOnlyCollection, IEnumerable<T>, IEnumerable, IListSource 
where K : Object, IComparable<K>
where T : SfcInstance 
where S : SfcInstance

Type Parameters


The key type of the target collection.


The element type of the target collection.


The type of the collection owner.

The SfcReferenceCollection<K, T, S> type exposes the following members.

Protected methodSfcReferenceCollection<K, T, S>Initializes a new instance of the SfcReferenceCollection<K, T, S> class using the specified owner, resolver, and comparer.

Public propertyCountGets the number of elements contained in the collection.
Public propertyItemGets the element associated with the specified key.
Public propertyKeysGets the collection of keys contained in this collection.
Public propertyValuesGets the collection of values contained in this collection.

Public methodContainsDetermines whether this collection contains an element with the specified value.
Public methodContainsKeyDetermines whether SfcReferenceCollection<K, T, S> contains an element with the specified key.
Public methodCopyToCopies the elements of this collection to the specified array, starting at specified index.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetEnumeratorReturns an enumerator that iterates through a collection.
Public methodGetHashCode (Inherited from Object.)
Protected methodGetKeyFromValueObtains a key from the item value.
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRefreshRenews the inner collection storage and resolves to fill it.
Public methodToString (Inherited from Object.)
Public methodTryGetValueGets the value associated with the specified key.

Explicit interface implemetationPrivate propertyIListSource.ContainsListCollectionGets a value indicating whether this list is an IList collection.
Explicit interface implemetationPrivate methodIEnumerable<T>.GetEnumeratorReturns an enumerator that iterates through a collection.
Explicit interface implemetationPrivate methodIListSource.GetListCreates a list of values from the collection that can be accessed by index, sorted, and searched.

This class abstracts all the necessary handshaking between the parent object, and the collection or element objects.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft