DatabasePermissionSet.Remove(DatabasePermission) DatabasePermissionSet.Remove(DatabasePermission) DatabasePermissionSet.Remove(DatabasePermission) Method

Definition

Removes a permission from the permission set.

public:
 Microsoft::SqlServer::Management::Smo::DatabasePermissionSet ^ Remove(Microsoft::SqlServer::Management::Smo::DatabasePermission ^ permission);
public Microsoft.SqlServer.Management.Smo.DatabasePermissionSet Remove (Microsoft.SqlServer.Management.Smo.DatabasePermission permission);
Public Function Remove (permission As DatabasePermission) As DatabasePermissionSet
Parameters
permission
DatabasePermission DatabasePermission DatabasePermission

A DatabasePermission object that specifies the permission to remove.

Returns

A DatabasePermissionSet object that specifies the permission set after the permission is removed.

Examples

Granting, Revoking, and Denying Permissions

Applies to