Método Database.IsMember
Determines whether the specified group or role belongs to the database.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)
Sintaxe
'Declaração
Public Function IsMember ( _
groupOrRole As String _
) As Boolean
'Uso
Dim instance As Database
Dim groupOrRole As String
Dim returnValue As Boolean
returnValue = instance.IsMember(groupOrRole)
public bool IsMember(
string groupOrRole
)
public:
bool IsMember(
String^ groupOrRole
)
member IsMember :
groupOrRole:string -> bool
public function IsMember(
groupOrRole : String
) : boolean
Parâmetros
- groupOrRole
Tipo: System.String
A String value that specifies the name of the group or role.
Valor de retorno
Tipo: System.Boolean
A Boolean value that specifies whether the specified group or role is associated with the database.If True, the specified group or role belongs to the database.If False, the specified group or role does not belong to the database.
Consulte também
Referência
Namespace Microsoft.SqlServer.Management.Smo
Outros recursos
Trabalhando com objetos de banco de dados
Concedendo, revogando e negando permissões