Méthode DatabasePermission.ToDatabasePermissionSet
Returns a set of database permissions, based on a single database permission, by converting a DatabasePermission object to a DatabasePermissionSet object.
Espace de noms : Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Public Shared Function ToDatabasePermissionSet ( _
permission As DatabasePermission _
) As DatabasePermissionSet
'Utilisation
Dim permission As DatabasePermission
Dim returnValue As DatabasePermissionSet
returnValue = DatabasePermission.ToDatabasePermissionSet(permission)
public static DatabasePermissionSet ToDatabasePermissionSet(
DatabasePermission permission
)
public:
static DatabasePermissionSet^ ToDatabasePermissionSet(
DatabasePermission^ permission
)
static member ToDatabasePermissionSet :
permission:DatabasePermission -> DatabasePermissionSet
public static function ToDatabasePermissionSet(
permission : DatabasePermission
) : DatabasePermissionSet
Paramètres
- permission
Type : Microsoft.SqlServer.Management.Smo.DatabasePermission
A DatabasePermission object that specifies the database permission.
Valeur de retour
Type : Microsoft.SqlServer.Management.Smo.DatabasePermissionSet
A DatabasePermissionSet object that specifies a single server permission.
Exemples
Octroi, révocation et refus d'autorisations
Voir aussi
Référence
Espace de noms Microsoft.SqlServer.Management.Smo