Freigeben über


Item-Eigenschaft (String)

Gets a DatabaseRole object in the collection by name.

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

Syntax

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

value = instance(name)
public DatabaseRole this[
    string name
] { get; }
public:
property DatabaseRole^ default[String^ name] {
    DatabaseRole^ get (String^ name);
}
member Item : DatabaseRole
JScript unterstützt die Verwendung indizierter Eigenschaften, aber nicht die Deklaration neuer Eigenschaften.

Parameter

Eigenschaftswert

Typ: Microsoft.SqlServer.Management.Smo. . :: . .DatabaseRole
A DatabaseRole object value that represents the database role.