ManagedInstanceCollection ManagedInstanceCollection ManagedInstanceCollection Class

Definition

ManagedInstanceCollection class

public sealed class ManagedInstanceCollection : Microsoft.SqlServer.Management.Sdk.Sfc.SfcCollatedDictionaryCollection<Microsoft.SqlServer.Management.Utility.ManagedInstance,Microsoft.SqlServer.Management.Utility.ManagedInstance.Key,Microsoft.SqlServer.Management.Utility.Utility>
type ManagedInstanceCollection = class
    inherit SfcCollatedDictionaryCollection<ManagedInstance, ManagedInstance.Key, Utility>
Public NotInheritable Class ManagedInstanceCollection
Inherits SfcCollatedDictionaryCollection(Of ManagedInstance, ManagedInstance.Key, Utility)
Inheritance

Constructors

ManagedInstanceCollection(Utility) ManagedInstanceCollection(Utility) ManagedInstanceCollection(Utility)

This Constructor sets the parent of the ManagedInstanceCollection

ManagedInstanceCollection(Utility, IComparer<String>) ManagedInstanceCollection(Utility, IComparer<String>) ManagedInstanceCollection(Utility, IComparer<String>)

This Constructor sets the parent and customComparer for the ManagedInstanceCollection

Properties

Ascending Ascending Ascending

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

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

Sorting the collection will use this .NET culture info.

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

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

(Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
IListSource.ContainsListCollection IListSource.ContainsListCollection IListSource.ContainsListCollection Inherited from SfcCollection<T,K,ParentT>
Initialized Initialized Initialized Inherited from SfcCollection<T,K,ParentT>
ISfcCollection.Count ISfcCollection.Count ISfcCollection.Count Inherited from SfcCollection<T,K,ParentT>
ISfcCollection.Initialized ISfcCollection.Initialized ISfcCollection.Initialized Inherited from SfcCollection<T,K,ParentT>
ISfcCollection.Parent ISfcCollection.Parent ISfcCollection.Parent Inherited from SfcCollection<T,K,ParentT>
IsReadOnly IsReadOnly IsReadOnly Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>
IsSynchronized IsSynchronized IsSynchronized Inherited from SfcCollection<T,K,ParentT>
Item[K] Item[K] Item[K] Inherited from SfcCollection<T,K,ParentT>
Item[String] Item[String] Item[String]

Indexer to get the child object.

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

Methods

Add(T) Add(T) Add(T)

Adds the obj to the collection

(Inherited from SfcCollection<T,K,ParentT>)
AddImpl(T) AddImpl(T) AddImpl(T) Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>
AddShadow(T) AddShadow(T) AddShadow(T) Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>
Clear() Clear() Clear() Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>
Contains(K) Contains(K) Contains(K) Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>
Contains(String) Contains(String) Contains(String)

This checks if the collection contains a child with the given name.

Contains(T) Contains(T) Contains(T) Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>
CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32) Inherited from SfcCollection<T,K,ParentT>
CopyTo(T[], Int32) CopyTo(T[], Int32) CopyTo(T[], Int32) Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>
CreateAndInitializeChildObject(K) CreateAndInitializeChildObject(K) CreateAndInitializeChildObject(K) Inherited from SfcCollection<T,K,ParentT>
EnsureCollectionInitialized() EnsureCollectionInitialized() EnsureCollectionInitialized() Inherited from SfcCollection<T,K,ParentT>
FinishMerge() FinishMerge() FinishMerge() Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>
GetCollectionElementNameImpl() GetCollectionElementNameImpl() GetCollectionElementNameImpl() Inherited from SfcCollection<T,K,ParentT>
GetElementFactoryImpl() GetElementFactoryImpl() GetElementFactoryImpl() Inherited from SfcCollection<T,K,ParentT>
GetEnumerator() GetEnumerator() GetEnumerator() Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>
GetExistingObjectByKey(K) GetExistingObjectByKey(K) GetExistingObjectByKey(K) Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>
GetObjectByKey(K) GetObjectByKey(K) GetObjectByKey(K) Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>
InitInnerCollection() InitInnerCollection() InitInnerCollection() Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>
PrepareMerge() PrepareMerge() PrepareMerge() Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>
Refresh() Refresh() Refresh() Inherited from SfcCollection<T,K,ParentT>
Refresh(Boolean) Refresh(Boolean) Refresh(Boolean) Inherited from SfcCollection<T,K,ParentT>
Remove(T) Remove(T) Remove(T) Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>
RemoveImpl(T) RemoveImpl(T) RemoveImpl(T) Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>
RemoveInternal(T) RemoveInternal(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) Rename(T, K) Rename(T, K) Inherited from SfcCollection<T,K,ParentT>
ResetInnerCollection() ResetInnerCollection() 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) TryGetValue(K, T) TryGetValue(K, T) Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>

Explicit Interface Implementations

IComparer<K>.Compare(K, K) IComparer<K>.Compare(K, K) 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() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() Inherited from SfcCollection<T,K,ParentT>
IListSource.GetList() IListSource.GetList() IListSource.GetList() Inherited from SfcCollection<T,K,ParentT>
ISfcCollection.Add(SfcInstance) ISfcCollection.Add(SfcInstance) ISfcCollection.Add(SfcInstance) Inherited from SfcCollection<T,K,ParentT>
ISfcCollection.AddShadow(SfcInstance) ISfcCollection.AddShadow(SfcInstance) ISfcCollection.AddShadow(SfcInstance) Inherited from SfcCollection<T,K,ParentT>
ISfcCollection.EnsureInitialized() ISfcCollection.EnsureInitialized() ISfcCollection.EnsureInitialized() Inherited from SfcCollection<T,K,ParentT>
ISfcCollection.FinishMerge() ISfcCollection.FinishMerge() ISfcCollection.FinishMerge() Inherited from SfcCollection<T,K,ParentT>
ISfcCollection.GetCollectionElementNameImpl() ISfcCollection.GetCollectionElementNameImpl() ISfcCollection.GetCollectionElementNameImpl() Inherited from SfcCollection<T,K,ParentT>
ISfcCollection.GetElementFactory() ISfcCollection.GetElementFactory() ISfcCollection.GetElementFactory() Inherited from SfcCollection<T,K,ParentT>
ISfcCollection.GetExisting(SfcKey, SfcInstance) ISfcCollection.GetExisting(SfcKey, SfcInstance) ISfcCollection.GetExisting(SfcKey, SfcInstance) Inherited from SfcCollection<T,K,ParentT>
ISfcCollection.GetObjectByKey(SfcKey) ISfcCollection.GetObjectByKey(SfcKey) ISfcCollection.GetObjectByKey(SfcKey) Inherited from SfcCollection<T,K,ParentT>
ISfcCollection.PrepareMerge() ISfcCollection.PrepareMerge() ISfcCollection.PrepareMerge() Inherited from SfcCollection<T,K,ParentT>
ISfcCollection.Remove(SfcInstance) ISfcCollection.Remove(SfcInstance) ISfcCollection.Remove(SfcInstance) Inherited from SfcCollection<T,K,ParentT>
ISfcCollection.RemoveElement(SfcInstance) ISfcCollection.RemoveElement(SfcInstance) ISfcCollection.RemoveElement(SfcInstance) Inherited from SfcCollection<T,K,ParentT>
ISfcCollection.Rename(SfcInstance, SfcKey) ISfcCollection.Rename(SfcInstance, SfcKey) ISfcCollection.Rename(SfcInstance, SfcKey) Inherited from SfcCollection<T,K,ParentT>

Applies to