Partager via


DatabasePermissionSet.Subtract Method

Returns a database permission set after removing a database permission from the specified permission set.

Espace de noms: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntaxe

'Déclaration
Public Shared Function Subtract ( _
    permissionLeft As DatabasePermissionSet, _
    permissionRight As DatabasePermission _
) As DatabasePermissionSet
public static DatabasePermissionSet Subtract (
    DatabasePermissionSet permissionLeft,
    DatabasePermission permissionRight
)
public:
static DatabasePermissionSet^ Subtract (
    DatabasePermissionSet^ permissionLeft, 
    DatabasePermission^ permissionRight
)
public static DatabasePermissionSet Subtract (
    DatabasePermissionSet permissionLeft, 
    DatabasePermission permissionRight
)
public static function Subtract (
    permissionLeft : DatabasePermissionSet, 
    permissionRight : DatabasePermission
) : DatabasePermissionSet

Paramètres

  • permissionRight
    A DatabasePermission object that specifies the database permission to be removed.

Valeur de retour

A DatabasePermissionSet object value that specifies a set of database permissions.

Notes

Cet espace de noms, cette classe ou ce membre est pris en charge uniquement par la version 2.0 de Microsoft .NET Framework.

Exemple

How to: Grant Server Permissions in Visual Basic .NET

Sécurité des threads

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Plateformes

Plateformes de développement

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Plateformes cibles

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Voir aussi

Référence

DatabasePermissionSet Class
DatabasePermissionSet Members
Microsoft.SqlServer.Management.Smo Namespace

Autres ressources

Granting, Revoking, and Denying Permissions
Permissions