DatabasePermissionSet DatabasePermissionSet DatabasePermissionSet Constructors

Definition

Overloads

DatabasePermissionSet() DatabasePermissionSet() DatabasePermissionSet()

Initializes a new instance of the DatabasePermissionSet class.

DatabasePermissionSet(DatabasePermission) DatabasePermissionSet(DatabasePermission) DatabasePermissionSet(DatabasePermission)

Initializes a new instance of the DatabasePermissionSet class.

DatabasePermissionSet(DatabasePermission[]) DatabasePermissionSet(DatabasePermission[]) DatabasePermissionSet(DatabasePermission[])

Initializes a new instance of the DatabasePermissionSet class.

DatabasePermissionSet(DatabasePermissionSet) DatabasePermissionSet(DatabasePermissionSet) DatabasePermissionSet(DatabasePermissionSet)

Initializes a new instance of the DatabasePermissionSet class.

DatabasePermissionSet() DatabasePermissionSet() DatabasePermissionSet()

Initializes a new instance of the DatabasePermissionSet class.

public:
 DatabasePermissionSet();
public DatabasePermissionSet ();
Public Sub New ()

Examples

Granting, Revoking, and Denying Permissions

Remarks

The default constructor initializes any fields to their default values.

DatabasePermissionSet(DatabasePermission) DatabasePermissionSet(DatabasePermission) DatabasePermissionSet(DatabasePermission)

Initializes a new instance of the DatabasePermissionSet class.

public:
 DatabasePermissionSet(Microsoft::SqlServer::Management::Smo::DatabasePermission ^ permission);
public DatabasePermissionSet (Microsoft.SqlServer.Management.Smo.DatabasePermission permission);
Public Sub New (permission As DatabasePermission)
Parameters
permission
DatabasePermission DatabasePermission DatabasePermission

A DatabasePermission object that specifies a single permission for a set of permissions with a single member.

Examples

Granting, Revoking, and Denying Permissions

DatabasePermissionSet(DatabasePermission[]) DatabasePermissionSet(DatabasePermission[]) DatabasePermissionSet(DatabasePermission[])

Initializes a new instance of the DatabasePermissionSet class.

public:
 DatabasePermissionSet(... cli::array <Microsoft::SqlServer::Management::Smo::DatabasePermission ^> ^ permissions);
public DatabasePermissionSet (params Microsoft.SqlServer.Management.Smo.DatabasePermission[] permissions);
Public Sub New (ParamArray permissions As DatabasePermission())
Parameters
permissions
DatabasePermission[]

An array of

DatabasePermission objects that specify the set of permissions.

Examples

Granting, Revoking, and Denying Permissions

DatabasePermissionSet(DatabasePermissionSet) DatabasePermissionSet(DatabasePermissionSet) DatabasePermissionSet(DatabasePermissionSet)

Initializes a new instance of the DatabasePermissionSet class.

public:
 DatabasePermissionSet(Microsoft::SqlServer::Management::Smo::DatabasePermissionSet ^ oDatabasePermissionSet);
public DatabasePermissionSet (Microsoft.SqlServer.Management.Smo.DatabasePermissionSet oDatabasePermissionSet);
Public Sub New (oDatabasePermissionSet As DatabasePermissionSet)
Parameters
oDatabasePermissionSet
DatabasePermissionSet DatabasePermissionSet DatabasePermissionSet

A DatabasePermissionSet object that specifies a set of permissions.

Examples

Granting, Revoking, and Denying Permissions

Remarks

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

Applies to