Partilhar via


Construtor ObjectPermissionSet (ObjectPermissionSet)

Initializes a new instance of the ObjectPermissionSet class based on the specified set of object permissions.

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

Sintaxe

'Declaração
Public Sub New ( _
    oObjectPermissionSet As ObjectPermissionSet _
)
'Uso
Dim oObjectPermissionSet As ObjectPermissionSet 

Dim instance As New ObjectPermissionSet(oObjectPermissionSet)
public ObjectPermissionSet(
    ObjectPermissionSet oObjectPermissionSet
)
public:
ObjectPermissionSet(
    ObjectPermissionSet^ oObjectPermissionSet
)
new : 
        oObjectPermissionSet:ObjectPermissionSet -> ObjectPermissionSet
public function ObjectPermissionSet(
    oObjectPermissionSet : ObjectPermissionSet
)

Parâmetros

Comentários

The ObjectPermissionSet 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

ObjectPermissionSet Classe

Sobrecarregado ObjectPermissionSet

Namespace Microsoft.SqlServer.Management.Smo