ServerPermissionSet.Subtract(ServerPermissionSet, ServerPermission) ServerPermissionSet.Subtract(ServerPermissionSet, ServerPermission) ServerPermissionSet.Subtract(ServerPermissionSet, ServerPermission) Method

Definition

Returns a server permission set after subtracting a server permission from the specified permission set.

public:
 static Microsoft::SqlServer::Management::Smo::ServerPermissionSet ^ Subtract(Microsoft::SqlServer::Management::Smo::ServerPermissionSet ^ permissionLeft, Microsoft::SqlServer::Management::Smo::ServerPermission ^ permissionRight);
public static Microsoft.SqlServer.Management.Smo.ServerPermissionSet Subtract (Microsoft.SqlServer.Management.Smo.ServerPermissionSet permissionLeft, Microsoft.SqlServer.Management.Smo.ServerPermission permissionRight);
Public Shared Function Subtract (permissionLeft As ServerPermissionSet, permissionRight As ServerPermission) As ServerPermissionSet
Parameters
permissionLeft
ServerPermissionSet ServerPermissionSet ServerPermissionSet

A ServerPermissionSet object that specifies the server permission set.

permissionRight
ServerPermission ServerPermission ServerPermission

A ServerPermission object that specifies the server permissions.

Returns

A ServerPermissionSet object value that specifies a set of server permissions.

Examples

Granting, Revoking, and Denying Permissions

Applies to