Udostępnij przez


Właściwość Item (String)

Pobiera ServerRole obiektu kolekcja według nazwy.

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

Syntax

'Deklaracja
Public ReadOnly Default Property Item ( _
    name As String _
) As ServerRole
    Get
'Użycie
Dim instance As ServerRoleCollection
Dim name As String
Dim value As ServerRole

value = instance(name)
public ServerRole this[
    string name
] { get; }
public:
property ServerRole^ default[String^ name] {
    ServerRole^ get (String^ name);
}
member Item : ServerRole
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. . :: . .ServerRole
A ServerRole wartość obiektu, który reprezentuje rolę serwera.