Export (0) Print
Expand All

SfcReferenceCollection<K, T, S> Class

Represents the base for all domain collections.

Object
  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)

[DefaultMemberAttribute("Item")]
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

K

The key type of the target collection.

T

The element type of the target collection.

S

The type of the collection owner.

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

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

  NameDescription
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.
Top

  NameDescription
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.
Top

  NameDescription
Explicit interface implemetationPrivate propertyIListSourceContainsListCollectionGets 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 methodIListSourceGetListCreates a list of values from the collection that can be accessed by index, sorted, and searched.
Top

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

ADD
Show:
© 2014 Microsoft