Share via


ServerInstanceCollection.Item Property (Int32)

Gets a ServerInstance object in the collection by index number.

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

Syntax

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

value = instance(index)
public ServerInstance this[
    int index
] { get; }
public:
property ServerInstance^ default[int index] {
    ServerInstance^ get (int index);
}
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.

See Also

Reference

ServerInstanceCollection Class

Item Overload

Microsoft.SqlServer.Management.Smo.Wmi Namespace