Udostępnij za pośrednictwem


Właściwość Item (String)

Pobiera ServerInstance obiektu kolekcja według nazwy.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Smo.Wmi
Zestaw:  Microsoft.SqlServer.SqlWmiManagement (w Microsoft.SqlServer.SqlWmiManagement.dll)

Syntax

'Deklaracja
Public ReadOnly Default Property Item ( _
    name As String _
) As ServerInstance
    Get
'Użycie
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

Wartość właściwości

Typ: Microsoft.SqlServer.Management.Smo.Wmi. . :: . .ServerInstance
A ServerInstance wartość obiektu, który reprezentuje wystąpienie SQL Server.