Udostępnij za pośrednictwem


Metoda Grant (ObjectPermissionSet, String, Boolean)

Udziela dostępu do określonych uprawnień i możliwości udzielenia dostępu innym użytkownikom określonej grantee na Service Broker usługa.

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

Syntax

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

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

Parameters

  • grantGrant
    Typ: System. . :: . .Boolean
    A Boolean właściwość, która określa, czy grantee jest możliwość udzielenia dostępu do BrokerService obiektu dla innych użytkowników.
    Jeśli True, grantee jest możliwość udostępnienia innym użytkownikom Service Broker usługa.
    Jeśli False, grantee nie jest możliwość odmawiać użytkownikom dostępu do Service Broker usługa.

Implementacje

IObjectPermission. . :: . .Grant(ObjectPermissionSet, String, Boolean)