Metodo User.IsMember
Verifies whether the database user is a member of the specified role.
Spazio dei nomi Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Sintassi
'Dichiarazione
Public Function IsMember ( _
role As String _
) As Boolean
'Utilizzo
Dim instance As User
Dim role As String
Dim returnValue As Boolean
returnValue = instance.IsMember(role)
public bool IsMember(
string role
)
public:
bool IsMember(
String^ role
)
member IsMember :
role:string -> bool
public function IsMember(
role : String
) : boolean
Parametri
- role
Tipo: System.String
A String value that specifies the role.
Valore restituito
Tipo: System.Boolean
A Boolean value that specifies whether the database user is a member of the role.If True, the database user is a member of the role.If False (default), the database user is not a member of the role.
Esempi
Gestione di utenti, ruoli e account di accesso
Vedere anche
Riferimento
Spazio dei nomi Microsoft.SqlServer.Management.Smo