ServerPermissionSet ServerPermissionSet ServerPermissionSet Constructors

Definition

Overloads

ServerPermissionSet() ServerPermissionSet() ServerPermissionSet()

Initializes a new instance of the ServerPermissionSet class.

ServerPermissionSet(ServerPermission) ServerPermissionSet(ServerPermission) ServerPermissionSet(ServerPermission)

Initializes a new instance of the ServerPermissionSet class based on the specified permission.

ServerPermissionSet(ServerPermission[]) ServerPermissionSet(ServerPermission[]) ServerPermissionSet(ServerPermission[])

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

ServerPermissionSet(ServerPermissionSet) ServerPermissionSet(ServerPermissionSet) ServerPermissionSet(ServerPermissionSet)

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

ServerPermissionSet() ServerPermissionSet() ServerPermissionSet()

Initializes a new instance of the ServerPermissionSet class.

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

Examples

Granting, Revoking, and Denying Permissions

Remarks

The default constructor initializes any fields to their default values.

ServerPermissionSet(ServerPermission) ServerPermissionSet(ServerPermission) ServerPermissionSet(ServerPermission)

Initializes a new instance of the ServerPermissionSet class based on the specified permission.

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

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

Examples

Granting, Revoking, and Denying Permissions

ServerPermissionSet(ServerPermission[]) ServerPermissionSet(ServerPermission[]) ServerPermissionSet(ServerPermission[])

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

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

An array of ServerPermission objects that specify the set of permissions.

Examples

Granting, Revoking, and Denying Permissions

ServerPermissionSet(ServerPermissionSet) ServerPermissionSet(ServerPermissionSet) ServerPermissionSet(ServerPermissionSet)

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

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

A ServerPermissionSet object that specifies a set of permissions.

Examples

Granting, Revoking, and Denying Permissions

Remarks

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

Applies to