User.IsMember Método
Verifies whether the database user is a member of the specified role.
Espacio de nombres: Microsoft.SqlServer.Management.Smo
Ensamblado: Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Sintaxis
'Declaración
Public Function IsMember ( _
role As String _
) As Boolean
'Uso
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
Parámetros
- role
Tipo: System.String
A String value that specifies the role.
Valor devuelto
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.
Ejemplos
Administrar usuarios, roles e inicios de sesión
Vea también
Referencia
Espacio de nombres Microsoft.SqlServer.Management.Smo