SfcReferenceCollection<K,T,S> SfcReferenceCollection<K,T,S> SfcReferenceCollection<K,T,S> Class

Definition

Represents the base for all domain collections.

generic <typename K, typename T, typename S>
 where K : IComparable<K> where T : SfcInstance where S : SfcInstancepublic ref class SfcReferenceCollection abstract : Microsoft::SqlServer::Management::Sdk::Sfc::IReadOnlyCollection<T>, Microsoft::SqlServer::Management::Sdk::Sfc::IReadOnlyDictionary<K, T>, System::Collections::Generic::IEnumerable<T>, System::ComponentModel::IListSource
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
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>SfcReferenceCollection<K,T,S>SfcReferenceCollection<K,T,S>
Implements

Remarks

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

Constructors

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

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

Properties

Count Count Count

Gets the number of elements contained in the collection.

Item[K] Item[K] Item[K]

Gets the element associated with the specified key.

Keys Keys Keys

Gets the collection of keys contained in this collection.

Values Values Values

Gets the collection of values contained in this collection.

Methods

Contains(T) Contains(T) Contains(T)

Determines whether this collection contains an element with the specified value.

ContainsKey(K) ContainsKey(K) ContainsKey(K)

Determines whether SfcReferenceCollection<K,T,S> contains an element with the specified key.

CopyTo(T[], Int32) CopyTo(T[], Int32) CopyTo(T[], Int32)

Copies the elements of this collection to the specified array, starting at specified index.

GetEnumerator() GetEnumerator() GetEnumerator()

Returns an enumerator that iterates through a collection.

GetKeyFromValue(T) GetKeyFromValue(T) GetKeyFromValue(T)

Obtains a key from the item value.

Refresh() Refresh() Refresh()

Renews the inner collection storage and resolves to fill it.

TryGetValue(K, T) TryGetValue(K, T) TryGetValue(K, T)

Gets the value associated with the specified key.

Explicit Interface Implementations

IEnumerable<T>.GetEnumerator() IEnumerable<T>.GetEnumerator() IEnumerable<T>.GetEnumerator()

Returns an enumerator that iterates through a collection.

IListSource.ContainsListCollection IListSource.ContainsListCollection IListSource.ContainsListCollection

Gets a value indicating whether the collection is a collection of IList objects.

IListSource.GetList() IListSource.GetList() IListSource.GetList()

Creates a list of values from the collection that can be accessed by index, sorted, and searched.

Applies to