Metodo DatabasePermissionSet.Subtract

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

Spazio dei nomi  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
Public Shared Function Subtract ( _
    permissionLeft As DatabasePermissionSet, _
    permissionRight As DatabasePermission _
) As DatabasePermissionSet
'Utilizzo
Dim permissionLeft As DatabasePermissionSet 
Dim permissionRight As DatabasePermission 
Dim returnValue As DatabasePermissionSet 

returnValue = DatabasePermissionSet.Subtract(permissionLeft, _
    permissionRight)
public static DatabasePermissionSet Subtract(
    DatabasePermissionSet permissionLeft,
    DatabasePermission permissionRight
)
public:
static DatabasePermissionSet^ Subtract(
    DatabasePermissionSet^ permissionLeft, 
    DatabasePermission^ permissionRight
)
static member Subtract : 
        permissionLeft:DatabasePermissionSet * 
        permissionRight:DatabasePermission -> DatabasePermissionSet
public static function Subtract(
    permissionLeft : DatabasePermissionSet, 
    permissionRight : DatabasePermission
) : DatabasePermissionSet

Parametri

Valore restituito

Tipo: Microsoft.SqlServer.Management.Smo.DatabasePermissionSet
A DatabasePermissionSet object value that specifies a set of database permissions.

Esempi

Concessione, revoca e negazione delle autorizzazioni

Vedere anche

Riferimento

DatabasePermissionSet Classe

Spazio dei nomi Microsoft.SqlServer.Management.Smo

Altre risorse

Autorizzazioni (Motore di database)