DatabasePermissionSet.Remove Método
Removes a permission from the permission set.
Espacio de nombres: Microsoft.SqlServer.Management.Smo
Ensamblado: Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Sintaxis
'Declaración
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 devuelto
Tipo: Microsoft.SqlServer.Management.Smo.DatabasePermissionSet
A DatabasePermissionSet object that specifies the permission set after the permission is removed.
Ejemplos
Conceder, revocar y denegar permisos
Vea también
Referencia
Espacio de nombres Microsoft.SqlServer.Management.Smo