ServerGroupCollection.Item[] Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a ServerGroup object in the collection by name or by index number.
Overloads
Item[Int32] |
Gets a ServerGroup object in the collection by index number. |
Item[String] |
Gets a ServerGroup object in the collection by name. |
Item[Int32]
Gets a ServerGroup object in the collection by index number.
public:
property Microsoft::SqlServer::Management::Smo::RegisteredServers::ServerGroup ^ default[int] { Microsoft::SqlServer::Management::Smo::RegisteredServers::ServerGroup ^ get(int index); };
public Microsoft.SqlServer.Management.Smo.RegisteredServers.ServerGroup this[int index] { get; }
member this.Item(int) : Microsoft.SqlServer.Management.Smo.RegisteredServers.ServerGroup
Default Public ReadOnly Property Item(index As Integer) As ServerGroup
Parameters
- index
- Int32
An Int32 value that specifies the position of the ServerGroup object in the ServerGroupCollection collection.
Property Value
A ServerGroup object value that represents the server group.
Examples
Applies to
Item[String]
Gets a ServerGroup object in the collection by name.
public:
property Microsoft::SqlServer::Management::Smo::RegisteredServers::ServerGroup ^ default[System::String ^] { Microsoft::SqlServer::Management::Smo::RegisteredServers::ServerGroup ^ get(System::String ^ name); };
public Microsoft.SqlServer.Management.Smo.RegisteredServers.ServerGroup this[string name] { get; }
member this.Item(string) : Microsoft.SqlServer.Management.Smo.RegisteredServers.ServerGroup
Default Public ReadOnly Property Item(name As String) As ServerGroup
Parameters
- name
- String
A String value that specifies the name of the ServerGroup object in the ServerGroupCollection collection.
Property Value
A ServerGroup object value that represents the server group.