共用方式為


SfcCollection(T, K, ParentT) 類別

Represents the base for all domain collections. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。

命名空間:  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), IEnumerable(Of T),  _
    ICollection, ISfcCollection, IEnumerable, IListSource
'用途
Dim instance As SfcCollection(Of T, K, ParentT)
public abstract class SfcCollection<T, K, ParentT> : ICollection<T>, 
    IEnumerable<T>, ICollection, ISfcCollection, 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>, 
    IEnumerable<T>, ICollection, ISfcCollection, IEnumerable, IListSource
[<AbstractClassAttribute>]
type SfcCollection<'T, 'K, 'ParentT when 'T : SfcInstance when 'K : SfcKey when 'ParentT : SfcInstance> =  
    class
        interface ICollection<'T>
        interface IEnumerable<'T>
        interface ICollection
        interface ISfcCollection
        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<(Of <(<'T, K, ParentT>)>)> 型別公開下列成員。

建構函式

  名稱 說明
受保護的方法 SfcCollection< (Of < ( <'T, K, ParentT> ) > ) > Initializes a new instance of the SfcCollection<(Of <(<'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 基礎結構。
受保護的方法 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. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。
公用方法 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。)
受保護的方法 ImplAddExisting Adds the specified object to the collection. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。
受保護的方法 ImplRemoveExisting Removes the specified object from the collection. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。
受保護的方法 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 基礎結構。
受保護的方法 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. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。
明確介面實作私用屬性 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) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。