Método DatabasePermissionSet.Remove
Removes a permission from the permission set.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)
Sintaxe
'Declaração
Public Function Remove ( _
permission As DatabasePermission _
) As DatabasePermissionSet
'Uso
Dim instance As DatabasePermissionSet
Dim permission As DatabasePermission
Dim returnValue As DatabasePermissionSet
returnValue = instance.Remove(permission)
public DatabasePermissionSet Remove(
DatabasePermission permission
)
public:
DatabasePermissionSet^ Remove(
DatabasePermission^ permission
)
member Remove :
permission:DatabasePermission -> DatabasePermissionSet
public function Remove(
permission : DatabasePermission
) : DatabasePermissionSet
Parâmetros
- permission
Tipo: Microsoft.SqlServer.Management.Smo.DatabasePermission
A DatabasePermission object that specifies the permission to remove.
Valor de retorno
Tipo: Microsoft.SqlServer.Management.Smo.DatabasePermissionSet
A DatabasePermissionSet object that specifies the permission set after the permission is removed.
Exemplos
Concedendo, revogando e negando permissões
Consulte também
Referência
Namespace Microsoft.SqlServer.Management.Smo