Compartilhar via


Construtor DatabasePermissionSet (DatabasePermissionSet)

Initializes a new instance of the DatabasePermissionSet class.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
Public Sub New ( _
    oDatabasePermissionSet As DatabasePermissionSet _
)
'Uso
Dim oDatabasePermissionSet As DatabasePermissionSet 

Dim instance As New DatabasePermissionSet(oDatabasePermissionSet)
public DatabasePermissionSet(
    DatabasePermissionSet oDatabasePermissionSet
)
public:
DatabasePermissionSet(
    DatabasePermissionSet^ oDatabasePermissionSet
)
new : 
        oDatabasePermissionSet:DatabasePermissionSet -> DatabasePermissionSet
public function DatabasePermissionSet(
    oDatabasePermissionSet : DatabasePermissionSet
)

Parâmetros

Comentários

The DatabasePermissionSet object is used to grant, deny, revoke, and enumerate database permissions (also known as statement permissions).

Exemplos

Concedendo, revogando e negando permissões

Consulte também

Referência

DatabasePermissionSet Classe

Sobrecarregado DatabasePermissionSet

Namespace Microsoft.SqlServer.Management.Smo

Outros recursos

Permissões (Mecanismo de Banco de Dados)