Export (0) Print
Expand All

SfcCollection<T, K, ParentT> Class

Represents the base for all domain collections. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

Namespace:  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)

public abstract class SfcCollection<T, K, ParentT> : ICollection<T>, 
	ICollection, ISfcCollection, IEnumerable<T>, IEnumerable, IListSource 
where T : SfcInstance 
where K : SfcKey 
where ParentT : SfcInstance

Type Parameters

T

The type of the items in the collection, constrained to SfcInstance.

K

The type of the key, constrained to SfcKey.

ParentT

The type of the parent object, constrained to SfcInstance.

The SfcCollection<T, K, ParentT> type exposes the following members.

  NameDescription
Protected methodSfcCollection<T, K, ParentT>Initializes a new instance of the SfcCollection<T, K, ParentT> class. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Top

  NameDescription
Public propertyCountGets the number of items contained in the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Protected propertyInitializedGets a value indicating whether the collection has been initialized. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Public propertyIsReadOnlyGets a value indicating whether the collection is read-only. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Public propertyIsSynchronizedGets or sets a value indicating whether access to the collection is synchronized (thread safe). Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Public propertyItemGets the item specified by the key. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Protected propertyParentGets or sets the type of the parent object. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Public propertySyncRootGets or sets an object that can be used to synchronize access to the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Top

  NameDescription
Public methodAddAdds the specified object to the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Protected methodAddImplAdds an object or member to this collection.
Protected methodAddShadowAdds the specified object to the shadow collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Public methodClearRemoves all items from the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Public methodContains(K)Determines whether the collection contains the specified key.
Public methodContains(T)Determines whether the collection contains the specified object. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Public methodCopyTo(Array, Int32)Copies the elements from the collection to the specified array, starting at the specified array index. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Public methodCopyTo(T[], Int32)Copies the elements from the collection to the specified array, starting at the specified array index. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Protected methodCreateAndInitializeChildObjectCreates a child object and adds it to the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Protected methodEnsureCollectionInitializedInitialize the collection from the server. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Protected methodFinishMergeSwaps the new collection for the old collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Protected methodGetCollectionElementNameImplGets the Uniform Resource Name (URN) suffix for elements in the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Protected methodGetElementFactoryImplReturns the factory that is used to instantiate objects for the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Public methodGetEnumeratorReturns an enumerator that can iterate the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Protected methodGetExistingObjectByKeyUses the specified key to retrieve an existing object from the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Public methodGetHashCode (Inherited from Object.)
Protected methodGetObjectByKeyUses the specified key to retrieve an existing object from the collection. If a matching object is not found, the object is created, and added to the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Public methodGetType (Inherited from Object.)
Protected methodInitInnerCollectionCreates an empty internal collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodPrepareMergePrepares to merge fresh query results into the existing collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Public methodRefresh()Refreshes the collection by creating new and merging existing objects and properties in the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Public methodRefresh(Boolean)Refreshes the collection by creating new and merging existing objects and properties in the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Public methodRemoveRemoves the specified object from the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Protected methodRemoveImplRemoves the specified object from the collection.
Protected methodRemoveInternalMarks the specified object for removal. The state of the object is set to ToBeDropped. The object will be removed when the parent is altered or dropped. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Protected methodRenameRenames the specified object. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Public methodToString (Inherited from Object.)
Top

  NameDescription
Explicit interface implemetationPrivate propertyIListSource.ContainsListCollectionGets a value indicating whether the collection is a collection of IList objects. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Explicit interface implemetationPrivate methodIEnumerable.GetEnumeratorGets an enumerator that can iterate the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Explicit interface implemetationPrivate methodIListSource.GetListReturns an IList object that can be bound to a data source from an object that does not implement the IList interface. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Explicit interface implemetationPrivate methodISfcCollection.AddAdds the specified object to the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Explicit interface implemetationPrivate methodISfcCollection.AddShadowAdds the specified object to the shadow collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Explicit interface implemetationPrivate propertyISfcCollection.CountGets the number of items contained in the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Explicit interface implemetationPrivate methodISfcCollection.EnsureInitializedInitializes the collection from the server. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Explicit interface implemetationPrivate methodISfcCollection.FinishMergeSwaps the new collection for the old collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Explicit interface implemetationPrivate methodISfcCollection.GetCollectionElementNameImplGets the URN suffix for elements in the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Explicit interface implemetationPrivate methodISfcCollection.GetElementFactoryGets the factory that is used to instantiate objects for the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Explicit interface implemetationPrivate methodISfcCollection.GetExistingUses the specified key to retrieve an existing item from the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Explicit interface implemetationPrivate methodISfcCollection.GetObjectByKeyUses the specified key to retrieve an object from the collection. If a matching object is not found, the object is created, and added to the collection
Explicit interface implemetationPrivate propertyISfcCollection.InitializedGets or sets a value indicating whether the collection has been initialized. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Explicit interface implemetationPrivate propertyISfcCollection.ParentGets the parent object. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Explicit interface implemetationPrivate methodISfcCollection.PrepareMergePrepares to merge fresh query results into the existing collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Explicit interface implemetationPrivate methodISfcCollection.RemoveRemoves the specified object from the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Explicit interface implemetationPrivate methodISfcCollection.RemoveElementRemoves the specified element from the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Explicit interface implemetationPrivate methodISfcCollection.RenameRenames the specified object. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft