共用方式為


ManagedInstanceCollection 類別

表示 SQL Server 公用程式中受管理的 SQL Server 執行階段的集合。

命名空間:  Microsoft.SqlServer.Management.Utility
組件:  Microsoft.SqlServer.Management.Utility (在 Microsoft.SqlServer.Management.Utility.dll 中)

語法

'宣告
Public NotInheritable Class ManagedInstanceCollection _
    Inherits SfcCollatedDictionaryCollection(Of ManagedInstance, ManagedInstance..::..Key, Utility)
'用途
Dim instance As ManagedInstanceCollection
public sealed class ManagedInstanceCollection : SfcCollatedDictionaryCollection<ManagedInstance, ManagedInstance..::..Key, Utility>
public ref class ManagedInstanceCollection sealed : public SfcCollatedDictionaryCollection<ManagedInstance^, ManagedInstance..::..Key^, Utility^>
[<SealedAttribute>]
type ManagedInstanceCollection =  
    class
        inherit SfcCollatedDictionaryCollection<ManagedInstance, ManagedInstance..::..Key, Utility>
    end
public final class ManagedInstanceCollection extends SfcCollatedDictionaryCollection<ManagedInstance, ManagedInstance..::..Key, Utility>

ManagedInstanceCollection 型別公開下列成員。

建構函式

  名稱 說明
公用方法 ManagedInstanceCollection(Utility) 建立具有指定之父 Utility 的新 ManagedInstanceCollection 執行個體。
公用方法 ManagedInstanceCollection(Utility, IComparer< (Of < <' (String> ) > > )) 建立具有指定之父 Utility 以及自訂物件比較子物件的新 ManagedInstanceCollection 執行個體。

上層

屬性

  名稱 說明
公用屬性 Ascending Gets or sets a value indicating whether to sort in ascending order. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
公用屬性 Count Gets the number of elements contained in the collection. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
受保護的屬性 CultureInfo Gets or sets the CultureInfo object that is used by the collection. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
受保護的屬性 IgnoreCase Gets or sets a value indicating whether the collection is case-sensitive. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
受保護的屬性 Initialized Gets a value indicating whether the collection has been initialized. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
公用屬性 IsReadOnly Gets a value indicating whether the collection is read-only. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
公用屬性 IsSynchronized Gets or sets a value indicating whether access to the collection is synchronized (thread safe). 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
公用屬性 Item[ ( [ ( K] ) ] ) Gets the item specified by the key. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
公用屬性 Item[ ( [ ( String] ) ] ) 從 ManagedInstanceCollection 傳回具有指定名稱的 Managed 執行個體。
受保護的屬性 Parent Gets or sets the type of the parent object. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
公用屬性 SyncRoot Gets or sets an object that can be used to synchronize access to the collection. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >。)

上層

方法

  名稱 說明
公用方法 Add Adds an item to the collection. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
受保護的方法 AddShadow Adds the specified object to the shadow collection. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
公用方法 Clear Removes all items from the collection. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
公用方法 Contains(T) Determines whether the collection contains the specified object. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
公用方法 Contains(String) 傳回值,指出集合是否包含具有指定名稱的受管理的執行階段。
公用方法 CopyTo(array<T> [] () [] [], Int32) Copies the elements from the collection to the specified array, starting at the specified array index. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
公用方法 CopyTo(Array, Int32) Copies the elements from the collection to the specified array, starting at the specified array index. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
受保護的方法 CreateAndInitializeChildObject Creates a child object and adds it to the collection. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
受保護的方法 EnsureCollectionInitialized Initialize the collection from the server. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
公用方法 Equals (繼承自 Object。)
受保護的方法 Finalize (繼承自 Object。)
受保護的方法 FinishMerge Swaps the new collection for the old collection. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
受保護的方法 GetCollectionElementNameImpl Gets the Uniform Resource Name (URN) suffix for elements in the collection. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
受保護的方法 GetElementFactoryImpl Returns the factory that is used to instantiate objects for the collection. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
公用方法 GetEnumerator Returns an enumerator that can iterate through the collection. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
受保護的方法 GetExistingObjectByKey Uses the specified key to retrieve an existing object from the collection. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
公用方法 GetHashCode (繼承自 Object。)
受保護的方法 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 基礎結構。 (繼承自 SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
公用方法 GetType (繼承自 Object。)
受保護的方法 ImplAddExisting Adds an item to the collection. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
受保護的方法 ImplRemoveExisting Removes the specified object from the collection. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
受保護的方法 InitInnerCollection Creates an empty internal collection. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
受保護的方法 MemberwiseClone (繼承自 Object。)
受保護的方法 PrepareMerge Prepares to merge fresh query results into the existing collection. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
公用方法 Refresh() () () () Refreshes the collection by creating new and merging existing objects and properties in the collection. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
公用方法 Refresh(Boolean) Refreshes the collection by creating new and merging existing objects and properties in the collection. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
公用方法 Remove Removes the specified object from the collection. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
受保護的方法 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 基礎結構。 (繼承自 SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
受保護的方法 Rename Renames the specified object. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
受保護的方法 ResetInnerCollection Resets the CultureInfo, IgnoreCase, and Ascending properties on the inner collection to honor the new settings. Call this method after any of the properties have changed. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
公用方法 ToString (繼承自 Object。)

上層

明確 繼承 實作

  名稱 說明
明確介面實作私用方法 IComparer< (Of < <' (K> ) > > ). . :: . .Compare 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 Compares two keys. (繼承自 SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
明確介面實作私用屬性 IListSource. . :: . .ContainsListCollection Gets a value indicating whether the collection is a collection of IList objects. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
明確介面實作私用方法 IEnumerable. . :: . .GetEnumerator Gets an enumerator that can iterate the collection. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
明確介面實作私用方法 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 基礎結構。 (繼承自 SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
明確介面實作私用方法 ISfcCollection. . :: . .Add Adds the specified object to the collection. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
明確介面實作私用方法 ISfcCollection. . :: . .AddShadow Adds the specified object to the shadow collection. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
明確介面實作私用屬性 ISfcCollection. . :: . .Count Gets the number of items contained in the collection. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
明確介面實作私用方法 ISfcCollection. . :: . .EnsureInitialized Initializes the collection from the server. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
明確介面實作私用方法 ISfcCollection. . :: . .FinishMerge Swaps the new collection for the old collection. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
明確介面實作私用方法 ISfcCollection. . :: . .GetCollectionElementNameImpl Gets the URN suffix for elements in the collection. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
明確介面實作私用方法 ISfcCollection. . :: . .GetElementFactory Gets the factory that is used to instantiate objects for the collection. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
明確介面實作私用方法 ISfcCollection. . :: . .GetExisting Uses the specified key to retrieve an existing item from the collection. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
明確介面實作私用方法 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 基礎結構。 (繼承自 SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
明確介面實作私用屬性 ISfcCollection. . :: . .Initialized Gets or sets a value indicating whether the collection has been initialized. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
明確介面實作私用屬性 ISfcCollection. . :: . .Parent Gets the parent object. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
明確介面實作私用方法 ISfcCollection. . :: . .PrepareMerge Prepares to merge fresh query results into the existing collection. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
明確介面實作私用方法 ISfcCollection. . :: . .Remove Removes the specified object from the collection. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
明確介面實作私用方法 ISfcCollection. . :: . .RemoveElement Removes the specified element from the collection. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
明確介面實作私用方法 ISfcCollection. . :: . .Rename Renames the specified object. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >。)

上層

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。