Share via


ServerInstanceCollection.Item[] Property

Definition

Gets a ServerInstance object in the collection by name or by index number.

Overloads

Item[Int32]

Gets a ServerInstance object in the collection by index number.

Item[String]

Gets a ServerInstance object in the collection by name.

Item[Int32]

Gets a ServerInstance object in the collection by index number.

public:
 property Microsoft::SqlServer::Management::Smo::Wmi::ServerInstance ^ default[int] { Microsoft::SqlServer::Management::Smo::Wmi::ServerInstance ^ get(int index); };
public Microsoft.SqlServer.Management.Smo.Wmi.ServerInstance this[int index] { get; }
member this.Item(int) : Microsoft.SqlServer.Management.Smo.Wmi.ServerInstance
Default Public ReadOnly Property Item(index As Integer) As ServerInstance

Parameters

index
Int32

An Int32 value that specifies the position of the ServerInstance object in the ServerInstanceCollection collection.

Property Value

A ServerInstance object value that represents an instance of SQL Server.

Applies to

Item[String]

Gets a ServerInstance object in the collection by name.

public:
 property Microsoft::SqlServer::Management::Smo::Wmi::ServerInstance ^ default[System::String ^] { Microsoft::SqlServer::Management::Smo::Wmi::ServerInstance ^ get(System::String ^ name); };
public Microsoft.SqlServer.Management.Smo.Wmi.ServerInstance this[string name] { get; }
member this.Item(string) : Microsoft.SqlServer.Management.Smo.Wmi.ServerInstance
Default Public ReadOnly Property Item(name As String) As ServerInstance

Parameters

name
String

A String value that specifies the name of the ServerInstance object in the ServerInstanceCollection collection.

Property Value

A ServerInstance object value that represents an instance of SQL Server.

Applies to