Share via


SfcCollection<T,K,ParentT> Class

Definition

The Sfc collection base for all domain collections. It abstracts all the necesssary handshaking between the parent object, and the collection or element objects.

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

Type Parameters

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

Constructors

SfcCollection<T,K,ParentT>(ParentT)

Properties

Count
Initialized
IsReadOnly
IsSynchronized
Item[K]
Parent
SyncRoot

Methods

Add(T)

Adds the obj to the collection

AddImpl(T)
AddShadow(T)
Clear()
Contains(K)
Contains(T)
CopyTo(Array, Int32)
CopyTo(T[], Int32)
CreateAndInitializeChildObject(K)
EnsureCollectionInitialized()
FinishMerge()
GetCollectionElementNameImpl()
GetElementFactoryImpl()
GetEnumerator()
GetExistingObjectByKey(K)
GetObjectByKey(K)
InitInnerCollection()
PrepareMerge()
Refresh()
Refresh(Boolean)
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.

Rename(T, K)

Explicit Interface Implementations

IEnumerable.GetEnumerator()
IListSource.ContainsListCollection
IListSource.GetList()
ISfcCollection.Add(SfcInstance)
ISfcCollection.AddShadow(SfcInstance)
ISfcCollection.Count
ISfcCollection.EnsureInitialized()
ISfcCollection.FinishMerge()
ISfcCollection.GetCollectionElementNameImpl()
ISfcCollection.GetElementFactory()
ISfcCollection.GetExisting(SfcKey, SfcInstance)
ISfcCollection.GetObjectByKey(SfcKey)
ISfcCollection.Initialized
ISfcCollection.Parent
ISfcCollection.PrepareMerge()
ISfcCollection.Remove(SfcInstance)
ISfcCollection.RemoveElement(SfcInstance)
ISfcCollection.Rename(SfcInstance, SfcKey)

Applies to