Partager via


Add méthode (DatabasePermission)

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

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (dans Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public Function Add ( _
    permission As DatabasePermission _
) As DatabasePermissionSet
'Utilisation
Dim instance As DatabasePermissionSet
Dim permission As DatabasePermission
Dim returnValue As DatabasePermissionSet

returnValue = instance.Add(permission)
public DatabasePermissionSet Add(
    DatabasePermission permission
)
public:
DatabasePermissionSet^ Add(
    DatabasePermission^ permission
)
member Add : 
        permission:DatabasePermission -> DatabasePermissionSet 
public function Add(
    permission : DatabasePermission
) : DatabasePermissionSet

Paramètres

Valeur de retour

Type : Microsoft.SqlServer.Management.Smo. . :: . .DatabasePermissionSet
A DatabasePermissionSet object that includes the new permission.