ServerPermission.Add(ServerPermission, ServerPermission) ServerPermission.Add(ServerPermission, ServerPermission) ServerPermission.Add(ServerPermission, ServerPermission) Method

Definition

Returns a set of server permissions after adding a new server permission to an existing set of server permissions.

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

A ServerPermission object that specifies the server permission.

permissionRight
ServerPermission ServerPermission ServerPermission

A ServerPermission object that specifies the server permission.

Returns

A ServerPermissionSet object that specifies a set of server permissions.

Examples

Granting, Revoking, and Denying Permissions

Applies to