共用方式為


RegisteredServerCollection 類別

The RegisteredServerCollection class represents a collection of RegisteredServer objects that represent all the registered servers that are defined on the parent object.

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

語法

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

RegisteredServerCollection 型別公開下列成員。

建構函式

  名稱 說明
公用方法 RegisteredServerCollection Initializes a new instance of the RegisteredServerCollection class based on the specified parent object and the specified comparison interface.

上層

屬性

  名稱 說明
公用屬性 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[ ( [ ( String] ) ] ) Gets a RegisteredServer object in the collection by name.
公用屬性 Item[ ( [ ( K] ) ] ) Gets the item specified by the key. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
受保護的屬性 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(String) Determines whether the specified registered server exists in the referenced collection.
公用方法 Contains(T) Determines whether the collection contains the specified object. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。 (繼承自 SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >。)
公用方法 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> ) > ) >。)

上層

備註

A RegisteredServerCollection object can be used to gain access to a set of check constraints. You can use the Item()()()() property to return a specific RegisteredServer object.

只有 Microsoft .NET Framework 2.0 版支援此命名空間、類別或成員。

範例

使用集合

執行緒安全性

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