Share via


ServerGroupCollection Members

The ServerGroupCollection class represents a collection of ServerGroup objects that represent all the server groups on the server group.

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

Protected Fields

  Name Description
ms220085.protfield(en-US,SQL.90).gif initialized  (inherited from RegSvrCollectionBase )
ms220085.protfield(en-US,SQL.90).gif innerColl  (inherited from RegSvrCollectionBase )

Top

Public Properties

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

Top

Public Methods

(see also Protected Methods )

  Name Description
ms220085.pubmethod(en-US,SQL.90).gif Add Adds a ServerGroup object to the ServerGroupCollection collection.
ms220085.pubmethod(en-US,SQL.90).gif Contains Determines whether the specified string value exists within the collection.
ms220085.pubmethod(en-US,SQL.90).gif CopyTo Copies the collection objects to a one-dimensional array beginning at the index value specified.
ms220085.pubmethod(en-US,SQL.90).gif Equals  Overloaded. (inherited from Object )
ms220085.pubmethod(en-US,SQL.90).gif GetEnumerator Returns an IEnumerator interface that lets you iterate through the objects in the collection.
ms220085.pubmethod(en-US,SQL.90).gif GetHashCode  (inherited from Object )
ms220085.pubmethod(en-US,SQL.90).gif GetType  (inherited from Object )
ms220085.pubmethod(en-US,SQL.90).gifms220085.static(en-US,SQL.90).gif ReferenceEquals  (inherited from Object )
ms220085.pubmethod(en-US,SQL.90).gif Remove Removes a ServerGroup object from the ServerGroupCollection object.
ms220085.pubmethod(en-US,SQL.90).gif ToString  (inherited from Object )

Top

Protected Methods

  Name Description
ms220085.protmethod(en-US,SQL.90).gif Finalize  (inherited from Object )
ms220085.protmethod(en-US,SQL.90).gif MemberwiseClone  (inherited from Object )

Top

See Also

Reference

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

Other Resources

Using Collections