Share via


ServerInstanceCollection.Item Property (String)

Gets a ServerInstance object in the collection by name.

Namespace:  Microsoft.SqlServer.Management.Smo.Wmi
Assembly:  Microsoft.SqlServer.SqlWmiManagement (in Microsoft.SqlServer.SqlWmiManagement.dll)

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    name As String _
) As ServerInstance
    Get
'Usage
Dim instance As ServerInstanceCollection
Dim name As String
Dim value As ServerInstance

value = instance(name)
public ServerInstance this[
    string name
] { get; }
public:
property ServerInstance^ default[String^ name] {
    ServerInstance^ get (String^ name);
}
member Item : ServerInstance
JScript supports the use of indexed properties, but not the declaration of new ones.

Parameters

Property Value

Type: Microsoft.SqlServer.Management.Smo.Wmi.ServerInstance
A ServerInstance object value that represents an instance of SQL Server.