RegisteredServerCollection Members

The RegisteredServerCollection class represents a collection of RegisteredServer objects that represent all the registered servers on the registered server group.

The following tables list the members exposed by the RegisteredServerCollection type.

Protected Fields

  名稱 Description
ms220078.protfield(zh-tw,SQL.90).gif initialized  (inherited from RegSvrCollectionBase )
ms220078.protfield(zh-tw,SQL.90).gif innerColl  (inherited from RegSvrCollectionBase )

頂端

Public Properties

  名稱 Description
ms220078.pubproperty(zh-tw,SQL.90).gif Count Gets the number of RegisteredServer objects in the collection.
ms220078.pubproperty(zh-tw,SQL.90).gif IsSynchronized  Gets a Boolean value indicating whether access to the collection is synchronized and therefore thread-safe. (inherited from RegSvrCollectionBase)
ms220078.pubproperty(zh-tw,SQL.90).gif Item Overloaded. Gets a RegisteredServer object in the collection by name or by index number.
ms220078.pubproperty(zh-tw,SQL.90).gif Parent Gets the ServerGroup object that is the parent of the RegisteredServerCollection object.
ms220078.pubproperty(zh-tw,SQL.90).gif SyncRoot  Gets an object that can be used to synchronize access to the collection. (inherited from RegSvrCollectionBase)

頂端

Public Methods

(see also Protected Methods )

  名稱 Description
ms220078.pubmethod(zh-tw,SQL.90).gif Add Adds a RegisteredServer object to the RegisteredServerCollection collection.
ms220078.pubmethod(zh-tw,SQL.90).gif Contains Determines whether the specified string value exists within the collection.
ms220078.pubmethod(zh-tw,SQL.90).gif CopyTo Copies the collection of objects to a one-dimensional array beginning at the index value specified.
ms220078.pubmethod(zh-tw,SQL.90).gif Equals  Overloaded. (inherited from Object )
ms220078.pubmethod(zh-tw,SQL.90).gif GetEnumerator Returns an IEnumerator interface that allows you to iterate through the objects in the collection.
ms220078.pubmethod(zh-tw,SQL.90).gif GetHashCode  (inherited from Object )
ms220078.pubmethod(zh-tw,SQL.90).gif GetType  (inherited from Object )
ms220078.pubmethod(zh-tw,SQL.90).gifms220078.static(zh-tw,SQL.90).gif ReferenceEquals  (inherited from Object )
ms220078.pubmethod(zh-tw,SQL.90).gif Remove Removes a RegisteredServer object from the RegisteredServerCollection object.
ms220078.pubmethod(zh-tw,SQL.90).gif ToString  (inherited from Object )

頂端

Protected Methods

  名稱 Description
ms220078.protmethod(zh-tw,SQL.90).gif Finalize  (inherited from Object )
ms220078.protmethod(zh-tw,SQL.90).gif MemberwiseClone  (inherited from Object )

頂端

請參閱

參考

RegisteredServerCollection Class
Microsoft.SqlServer.Management.Smo.RegisteredServers Namespace

其他資源

Using Collections