SfcCollatedDictionaryCollection<T,K,ParentT> Class

Definition

public abstract class SfcCollatedDictionaryCollection<T,K,ParentT> : Microsoft.SqlServer.Management.Sdk.Sfc.SfcCollection<T,K,ParentT>, System.Collections.Generic.IComparer<K>, System.Collections.Generic.IEnumerable<T> where T : SfcInstance where K : SfcKey where ParentT : SfcInstance
type SfcCollatedDictionaryCollection<'T, 'K, 'ParentT (requires 'T :> SfcInstance and 'K :> SfcKey and 'ParentT :> SfcInstance)> = class
    inherit SfcCollection<'T, 'K, 'ParentT (requires 'T :> SfcInstance and 'K :> SfcKey and 'ParentT :> SfcInstance)>
    interface IComparer<'K (requires 'K :> SfcKey)>
    interface seq<'T (requires 'T :> SfcInstance)>
    interface IEnumerable
Public MustInherit Class SfcCollatedDictionaryCollection(Of T, K, ParentT)
Inherits SfcCollection(Of T, K, ParentT)
Implements IComparer(Of K), IEnumerable(Of T)

Type Parameters

T
K
ParentT
Inheritance
SfcCollatedDictionaryCollection<T,K,ParentT>
Derived
Implements

Constructors

SfcCollatedDictionaryCollection<T,K,ParentT>(ParentT, IComparer<String>)
SfcCollatedDictionaryCollection<T,K,ParentT>(ParentT)

Properties

Ascending

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

Count
CultureInfo

Sorting the collection will use this .NET culture info.

IgnoreCase

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

Initialized (Inherited from SfcCollection<T,K,ParentT>)
IsReadOnly
IsSynchronized (Inherited from SfcCollection<T,K,ParentT>)
Item[K] (Inherited from SfcCollection<T,K,ParentT>)
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>)
AddImpl(T)
AddShadow(T)
Clear()
Contains(K)
Contains(T)
CopyTo(Array, Int32) (Inherited from SfcCollection<T,K,ParentT>)
CopyTo(T[], Int32)
CreateAndInitializeChildObject(K) (Inherited from SfcCollection<T,K,ParentT>)
EnsureCollectionInitialized() (Inherited from SfcCollection<T,K,ParentT>)
FinishMerge()
GetCollectionElementNameImpl() (Inherited from SfcCollection<T,K,ParentT>)
GetElementFactoryImpl() (Inherited from SfcCollection<T,K,ParentT>)
GetEnumerator()
GetExistingObjectByKey(K)
GetObjectByKey(K)
InitInnerCollection()
PrepareMerge()
Refresh() (Inherited from SfcCollection<T,K,ParentT>)
Refresh(Boolean) (Inherited from SfcCollection<T,K,ParentT>)
Remove(T)
RemoveImpl(T)
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.

TryGetValue(K, T)

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.

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