Opérateur DatabasePermissionSet.Addition
Creates a database permission set by performing an addition operation on a DatabasePermission object and a DatabasePermissionSet object.
Espace de noms : Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Public Shared Operator + ( _
permissionLeft As DatabasePermissionSet, _
permissionRight As DatabasePermission _
) As DatabasePermissionSet
'Utilisation
Dim permissionLeft As DatabasePermissionSet
Dim permissionRight As DatabasePermission
Dim returnValue As DatabasePermissionSet
returnValue = (permissionLeft + permissionRight)
public static DatabasePermissionSet operator +(
DatabasePermissionSet permissionLeft,
DatabasePermission permissionRight
)
public:
static DatabasePermissionSet^ operator +(
DatabasePermissionSet^ permissionLeft,
DatabasePermission^ permissionRight
)
static let inline(+)
permissionLeft:DatabasePermissionSet *
permissionRight:DatabasePermission : DatabasePermissionSet
JScript prend en charge l'utilisation d'opérateurs surchargés, mais pas la déclaration de nouveaux opérateurs.
Paramètres
- permissionLeft
Type : Microsoft.SqlServer.Management.Smo.DatabasePermissionSet
A DatabasePermissionSet object that specifies the database permission set.
- permissionRight
Type : Microsoft.SqlServer.Management.Smo.DatabasePermission
A DatabasePermission object that specifies the database permissions.
Valeur de retour
Type : Microsoft.SqlServer.Management.Smo.DatabasePermissionSet
A DatabasePermissionSet object value that specifies a set of database permissions.
Exemples
Octroi, révocation et refus d'autorisations
Voir aussi
Référence
Espace de noms Microsoft.SqlServer.Management.Smo