Udostępnij za pośrednictwem


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

Udziela dostępu do określonych uprawnień do stypendystów i możliwość udostępnienia innym użytkownikom na certyfikat.

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 Certificate
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 świadectwie.
    Jeśli True, grantee jest możliwość udzielenia określonego zestaw uprawnień innym użytkownikom na świadectwie.W przeciwnym razie jest używana wartość False.

Implementacje

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