Udostępnij za pośrednictwem


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

Udziela dostępu do określonych uprawnień i możliwość udostępnienia innym użytkownikom określonej stypendystów usługa kontrakt.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Smo.Broker
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 ServiceContract
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 uprawnień.
  • grantGrant
    Typ: System.Boolean
    A Boolean właściwość, która określa, czy grantee jest możliwość udzielenia dostępu do ServiceContract obiektu dla innych użytkowników.
    Jeśli True, grantee jest możliwość udzielenia dostępu do innych użytkowników usługa kontrakt.
    Jeśli ma wartość FAŁSZ, grantee jest nie możliwość odmawiać użytkownikom dostępu do usługa kontrakt.

Implementacje

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