Partager via


CollectionItemCollection Class

Definition

SFC Collection class for collection item objects

public sealed class CollectionItemCollection : Microsoft.SqlServer.Management.Sdk.Sfc.SfcCollatedDictionaryCollection<Microsoft.SqlServer.Management.Collector.CollectionItem,Microsoft.SqlServer.Management.Collector.CollectionItem.Key,Microsoft.SqlServer.Management.Collector.CollectionSet>
type CollectionItemCollection = class
    inherit SfcCollatedDictionaryCollection<CollectionItem, CollectionItem.Key, CollectionSet>
Public NotInheritable Class CollectionItemCollection
Inherits SfcCollatedDictionaryCollection(Of CollectionItem, CollectionItem.Key, CollectionSet)
Inheritance

Constructors

CollectionItemCollection(CollectionSet)

Initializes a new instance of a CollectionItemCollection given a CollectionSet

Properties

Ascending

Sort in an ascending order manner for the current collection culture.

(Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
Count (Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
CultureInfo

Sorting the collection will use this .NET culture info.

(Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
IgnoreCase

Sort in a case-insensitive manner for the current collection culture.

(Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
Initialized (Inherited from SfcCollection<T,K,ParentT>)
IsReadOnly (Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
IsSynchronized (Inherited from SfcCollection<T,K,ParentT>)
Item[K] (Inherited from SfcCollection<T,K,ParentT>)
Item[String]

Get the CollectionItem by name

Parent (Inherited from SfcCollection<T,K,ParentT>)
SyncRoot (Inherited from SfcCollection<T,K,ParentT>)

Methods

Add(T)

Adds the obj to the collection

(Inherited from SfcCollection<T,K,ParentT>)
AddCollectionItem(CollectionItem)

Explicitly add an item to the collection. TODO: This is a temporary solution until SFC v2.

AddImpl(T) (Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
AddShadow(T) (Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
Clear() (Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
Contains(K) (Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
Contains(T) (Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
CopyTo(Array, Int32) (Inherited from SfcCollection<T,K,ParentT>)
CopyTo(T[], Int32) (Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
CreateAndInitializeChildObject(K) (Inherited from SfcCollection<T,K,ParentT>)
EnsureCollectionInitialized() (Inherited from SfcCollection<T,K,ParentT>)
FinishMerge() (Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
GetCollectionElementNameImpl() (Inherited from SfcCollection<T,K,ParentT>)
GetElementFactoryImpl() (Inherited from SfcCollection<T,K,ParentT>)
GetEnumerator() (Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
GetExistingObjectByKey(K) (Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
GetObjectByKey(K) (Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
InitInnerCollection() (Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
PrepareMerge() (Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
Refresh() (Inherited from SfcCollection<T,K,ParentT>)
Refresh(Boolean) (Inherited from SfcCollection<T,K,ParentT>)
Remove(T) (Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
RemoveCollectionItem(CollectionItem)

Explicitly remove an item from the collection TODO: This is a temporary solution until SFC v2

RemoveImpl(T) (Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
RemoveInternal(T)

Remove the item given by the key. Existing object are marked with a state of ToBeDropped for dropping when their parent is Altered or Dropped. At that time the marked object will be removed fro the collection. Pending, None or Dropped objects are removed from the collection immediately.

(Inherited from SfcCollection<T,K,ParentT>)
Rename(T, K) (Inherited from SfcCollection<T,K,ParentT>)
ResetInnerCollection()

Call this if any of the CultureInfo, IgnoreCase, or Ascending properties change after Initialzation. The collection is reset to honor the new settings. TODO: The user is responsible for calling this after changing whatever properties they desire, it should be automated.

(Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
TryGetValue(K, T) (Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)

Explicit Interface Implementations

IComparer<K>.Compare(K, K)

Compare keys based on our current CultureInfo and IgnoreCase properties unless a custom comparer has been passed in.

(Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
IEnumerable.GetEnumerator() (Inherited from SfcCollection<T,K,ParentT>)
IListSource.ContainsListCollection (Inherited from SfcCollection<T,K,ParentT>)
IListSource.GetList() (Inherited from SfcCollection<T,K,ParentT>)
ISfcCollection.Add(SfcInstance) (Inherited from SfcCollection<T,K,ParentT>)
ISfcCollection.AddShadow(SfcInstance) (Inherited from SfcCollection<T,K,ParentT>)
ISfcCollection.Count (Inherited from SfcCollection<T,K,ParentT>)
ISfcCollection.EnsureInitialized() (Inherited from SfcCollection<T,K,ParentT>)
ISfcCollection.FinishMerge() (Inherited from SfcCollection<T,K,ParentT>)
ISfcCollection.GetCollectionElementNameImpl() (Inherited from SfcCollection<T,K,ParentT>)
ISfcCollection.GetElementFactory() (Inherited from SfcCollection<T,K,ParentT>)
ISfcCollection.GetExisting(SfcKey, SfcInstance) (Inherited from SfcCollection<T,K,ParentT>)
ISfcCollection.GetObjectByKey(SfcKey) (Inherited from SfcCollection<T,K,ParentT>)
ISfcCollection.Initialized (Inherited from SfcCollection<T,K,ParentT>)
ISfcCollection.Parent (Inherited from SfcCollection<T,K,ParentT>)
ISfcCollection.PrepareMerge() (Inherited from SfcCollection<T,K,ParentT>)
ISfcCollection.Remove(SfcInstance) (Inherited from SfcCollection<T,K,ParentT>)
ISfcCollection.RemoveElement(SfcInstance) (Inherited from SfcCollection<T,K,ParentT>)
ISfcCollection.Rename(SfcInstance, SfcKey) (Inherited from SfcCollection<T,K,ParentT>)

Applies to