Méthode Database.IsMember
Determines whether the specified group or role belongs to the database.
Espace de noms : Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Public Function IsMember ( _
groupOrRole As String _
) As Boolean
'Utilisation
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
Paramètres
- groupOrRole
Type : System.String
A String value that specifies the name of the group or role.
Valeur de retour
Type : 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.
Voir aussi
Référence
Espace de noms Microsoft.SqlServer.Management.Smo
Autres ressources
Utilisation des objets de base de données
Octroi, révocation et refus d'autorisations