SfcCollection<T, K, ParentT> 类

Represents the base for all domain collections. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。

继承层次结构

System.Object
  Microsoft.SqlServer.Management.Sdk.Sfc.SfcCollection<T, K, ParentT>
    Microsoft.SqlServer.Management.Sdk.Sfc.SfcCollatedDictionaryCollection<T, K, ParentT>
    Microsoft.SqlServer.Management.Sdk.Sfc.SfcDictionaryCollection<T, K, ParentT>
    Microsoft.SqlServer.Management.Sdk.Sfc.SfcListCollection<T, K, ParentT>

命名空间:  Microsoft.SqlServer.Management.Sdk.Sfc
程序集:  Microsoft.SqlServer.Management.Sdk.Sfc(在 Microsoft.SqlServer.Management.Sdk.Sfc.dll 中)

语法

声明
Public MustInherit Class SfcCollection(Of T As SfcInstance, K As SfcKey, ParentT As SfcInstance) _
    Implements ICollection(Of T), ICollection, ISfcCollection,  _
    IEnumerable(Of T), IEnumerable, IListSource
用法
Dim instance As SfcCollection(Of T, K, ParentT)
public abstract class SfcCollection<T, K, ParentT> : ICollection<T>, 
    ICollection, ISfcCollection, IEnumerable<T>, IEnumerable, IListSource 
where T : SfcInstance 
where K : SfcKey 
where ParentT : SfcInstance
generic<typename T, typename K, typename ParentT>
where T : SfcInstance 
where K : SfcKey 
where ParentT : SfcInstance 
public ref class SfcCollection abstract : ICollection<T>, 
    ICollection, ISfcCollection, IEnumerable<T>, IEnumerable, IListSource
[<AbstractClassAttribute>]
type SfcCollection<'T, 'K, 'ParentT when 'T : SfcInstance when 'K : SfcKey when 'ParentT : SfcInstance> =  
    class 
        interface ICollection<'T>
        interface ICollection 
        interface ISfcCollection 
        interface IEnumerable<'T>
        interface IEnumerable 
        interface IListSource 
    end
JScript 不支持一般类型和方法。

类型参数

  • 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.

SfcCollection<T, K, ParentT> 类型公开以下成员。

构造函数

  名称 说明
受保护方法 SfcCollection<T, K, ParentT> Initializes a new instance of the SfcCollection<T, K, ParentT> class. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。

页首

属性

  名称 说明
公共属性 Count Gets the number of items contained in the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
受保护属性 Initialized Gets a value indicating whether the collection has been initialized. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
公共属性 IsReadOnly Gets a value indicating whether the collection is read-only. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
公共属性 IsSynchronized Gets or sets a value indicating whether access to the collection is synchronized (thread safe). 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
公共属性 Item Gets the item specified by the key. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
受保护属性 Parent Gets or sets the type of the parent object. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
公共属性 SyncRoot Gets or sets an object that can be used to synchronize access to the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。

页首

方法

  名称 说明
公共方法 Add Adds the specified object to the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
受保护方法 AddImpl Adds an object or member to this collection.
受保护方法 AddShadow Adds the specified object to the shadow collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
公共方法 Clear Removes all items from the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
公共方法 Contains(K) Determines whether the collection contains the specified key.
公共方法 Contains(T) Determines whether the collection contains the specified object. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
公共方法 CopyTo(Array, Int32) Copies the elements from the collection to the specified array, starting at the specified array index. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
公共方法 CopyTo(array<T[], Int32) Copies the elements from the collection to the specified array, starting at the specified array index. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
受保护方法 CreateAndInitializeChildObject Creates a child object and adds it to the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
受保护方法 EnsureCollectionInitialized Initialize the collection from the server. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
公共方法 Equals (从 Object 继承。)
受保护方法 Finalize (从 Object 继承。)
受保护方法 FinishMerge Swaps the new collection for the old collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
受保护方法 GetCollectionElementNameImpl Gets the Uniform Resource Name (URN) suffix for elements in the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
受保护方法 GetElementFactoryImpl Returns the factory that is used to instantiate objects for the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
公共方法 GetEnumerator Returns an enumerator that can iterate the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
受保护方法 GetExistingObjectByKey Uses the specified key to retrieve an existing object from the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
公共方法 GetHashCode (从 Object 继承。)
受保护方法 GetObjectByKey Uses 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. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
公共方法 GetType (从 Object 继承。)
受保护方法 InitInnerCollection Creates an empty internal collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
受保护方法 MemberwiseClone (从 Object 继承。)
受保护方法 PrepareMerge Prepares to merge fresh query results into the existing collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
公共方法 Refresh() Refreshes the collection by creating new and merging existing objects and properties in the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
公共方法 Refresh(Boolean) Refreshes the collection by creating new and merging existing objects and properties in the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
公共方法 Remove Removes the specified object from the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
受保护方法 RemoveImpl Removes the specified object from the collection.
受保护方法 RemoveInternal Marks 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. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
受保护方法 Rename Renames the specified object. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
公共方法 ToString (从 Object 继承。)

页首

显式接口实现

  名称 说明
显式接口实现私有属性 IListSource.ContainsListCollection Gets a value indicating whether the collection is a collection of IList objects. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
显式接口实现私有方法 IEnumerable.GetEnumerator Gets an enumerator that can iterate the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
显式接口实现私有方法 IListSource.GetList Returns an IList object that can be bound to a data source from an object that does not implement the IList interface. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
显式接口实现私有方法 ISfcCollection.Add Adds the specified object to the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
显式接口实现私有方法 ISfcCollection.AddShadow Adds the specified object to the shadow collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
显式接口实现私有属性 ISfcCollection.Count Gets the number of items contained in the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
显式接口实现私有方法 ISfcCollection.EnsureInitialized Initializes the collection from the server. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
显式接口实现私有方法 ISfcCollection.FinishMerge Swaps the new collection for the old collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
显式接口实现私有方法 ISfcCollection.GetCollectionElementNameImpl Gets the URN suffix for elements in the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
显式接口实现私有方法 ISfcCollection.GetElementFactory Gets the factory that is used to instantiate objects for the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
显式接口实现私有方法 ISfcCollection.GetExisting Uses the specified key to retrieve an existing item from the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
显式接口实现私有方法 ISfcCollection.GetObjectByKey Uses 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
显式接口实现私有属性 ISfcCollection.Initialized Gets or sets a value indicating whether the collection has been initialized. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
显式接口实现私有属性 ISfcCollection.Parent Gets the parent object. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
显式接口实现私有方法 ISfcCollection.PrepareMerge Prepares to merge fresh query results into the existing collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
显式接口实现私有方法 ISfcCollection.Remove Removes the specified object from the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
显式接口实现私有方法 ISfcCollection.RemoveElement Removes the specified element from the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
显式接口实现私有方法 ISfcCollection.Rename Renames the specified object. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.SqlServer.Management.Sdk.Sfc 命名空间