DatabasePermissionSet.Add Método (DatabasePermission)
Returns a database permission set after adding a new a database permission to the referenced permission set.
Espacio de nombres: Microsoft.SqlServer.Management.Smo
Ensamblado: Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Sintaxis
'Declaración
Public Function Add ( _
permission As DatabasePermission _
) As DatabasePermissionSet
'Uso
Dim instance As DatabasePermissionSet
Dim permission As DatabasePermission
Dim returnValue As DatabasePermissionSet
returnValue = instance.Add(permission)
public DatabasePermissionSet Add(
DatabasePermission permission
)
public:
DatabasePermissionSet^ Add(
DatabasePermission^ permission
)
member Add :
permission:DatabasePermission -> DatabasePermissionSet
public function Add(
permission : DatabasePermission
) : DatabasePermissionSet
Parámetros
- permission
Tipo: Microsoft.SqlServer.Management.Smo.DatabasePermission
A DatabasePermission object that specifies the permission to add.
Valor devuelto
Tipo: Microsoft.SqlServer.Management.Smo.DatabasePermissionSet
A DatabasePermissionSet object that includes the new permission.
Ejemplos
Conceder, revocar y denegar permisos
Vea también
Referencia
Espacio de nombres Microsoft.SqlServer.Management.Smo