DatabasePermissionSet.Add DatabasePermissionSet.Add DatabasePermissionSet.Add Method

Definition

Returns a database permission set after adding a new a database permission to the permission set.

Overloads

Add(DatabasePermission) Add(DatabasePermission) Add(DatabasePermission)

Returns a database permission set after adding a new a database permission to the referenced permission set.

Add(DatabasePermissionSet, DatabasePermission) Add(DatabasePermissionSet, DatabasePermission) Add(DatabasePermissionSet, DatabasePermission)

Returns a database permission set after adding a new a database permission to the specified permission set.

Examples

Granting, Revoking, and Denying Permissions

Add(DatabasePermission) Add(DatabasePermission) Add(DatabasePermission)

Returns a database permission set after adding a new a database permission to the referenced permission set.

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

A DatabasePermission object that specifies the permission to add.

Returns

Examples

Granting, Revoking, and Denying Permissions

Add(DatabasePermissionSet, DatabasePermission) Add(DatabasePermissionSet, DatabasePermission) Add(DatabasePermissionSet, DatabasePermission)

Returns a database permission set after adding a new a database permission to the specified permission set.

public:
 static Microsoft::SqlServer::Management::Smo::DatabasePermissionSet ^ Add(Microsoft::SqlServer::Management::Smo::DatabasePermissionSet ^ permissionLeft, Microsoft::SqlServer::Management::Smo::DatabasePermission ^ permissionRight);
public static Microsoft.SqlServer.Management.Smo.DatabasePermissionSet Add (Microsoft.SqlServer.Management.Smo.DatabasePermissionSet permissionLeft, Microsoft.SqlServer.Management.Smo.DatabasePermission permissionRight);
Public Shared Function Add (permissionLeft As DatabasePermissionSet, permissionRight As DatabasePermission) As DatabasePermissionSet
Parameters
permissionLeft
DatabasePermissionSet DatabasePermissionSet DatabasePermissionSet

A DatabasePermissionSet object that specifies the database permission set.

permissionRight
DatabasePermission DatabasePermission DatabasePermission

A DatabasePermission object that specifies the permission to add.

Returns

Examples

Granting, Revoking, and Denying Permissions

Applies to