Udostępnij przez


Metoda SymmetricKey.Grant (ObjectPermissionSet, array<String[], Boolean)

Przyznającą dostęp do określonych uprawnień do stypendystów i możliwość udostępnienia innym użytkownikom na klucz zawartości.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Smo
Zestaw:  Microsoft.SqlServer.Smo (w Microsoft.SqlServer.Smo.dll)

Składnia

'Deklaracja
Public Sub Grant ( _
    permission As ObjectPermissionSet, _
    granteeNames As String(), _
    grantGrant As Boolean _
)
'Użycie
Dim instance As SymmetricKey
Dim permission As ObjectPermissionSet
Dim granteeNames As String()
Dim grantGrant As Boolean

instance.Grant(permission, granteeNames, _
    grantGrant)
public void Grant(
    ObjectPermissionSet permission,
    string[] granteeNames,
    bool grantGrant
)
public:
virtual void Grant(
    ObjectPermissionSet^ permission, 
    array<String^>^ granteeNames, 
    bool grantGrant
) sealed
abstract Grant : 
        permission:ObjectPermissionSet * 
        granteeNames:string[] * 
        grantGrant:bool -> unit 
override Grant : 
        permission:ObjectPermissionSet * 
        granteeNames:string[] * 
        grantGrant:bool -> unit 
public final function Grant(
    permission : ObjectPermissionSet, 
    granteeNames : String[], 
    grantGrant : boolean
)

Parametry

  • granteeNames
    Typ: array<System.String[]
    A String tablicy, która określa listę stypendystów, aby odmówić dostępu do zestaw uprawnień.
  • grantGrant
    Typ: System.Boolean
    A Boolean właściwość, która określa, czy grantee jest możliwość udzielenia określonego zestaw uprawnień innym użytkownikom na klucz zawartości.
    Jeśli True, grantee jest możliwość udzielenia określonego zestaw uprawnień innym użytkownikom na klucz zawartości.
    Jeśli False, grantee nie jest możliwość udzielenia określonego zestaw uprawnień innym użytkownikom na klucz zawartości.

Implementacje

IObjectPermission.Grant(ObjectPermissionSet, array<String[], Boolean)