Metoda MessageType.Grant (ObjectPermissionSet, array<String[], Boolean, String)
Dotacje dostęp do określonych uprawnień i możliwości udzielenia dostępu innym użytkownikom grantee określonego typu wiadomości w obszarze zakładanej roli.
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, _
asRole As String _
)
'Użycie
Dim instance As MessageType
Dim permission As ObjectPermissionSet
Dim granteeNames As String()
Dim grantGrant As Boolean
Dim asRole As String
instance.Grant(permission, granteeNames, _
grantGrant, asRole)
public void Grant(
ObjectPermissionSet permission,
string[] granteeNames,
bool grantGrant,
string asRole
)
public:
virtual void Grant(
ObjectPermissionSet^ permission,
array<String^>^ granteeNames,
bool grantGrant,
String^ asRole
) sealed
abstract Grant :
permission:ObjectPermissionSet *
granteeNames:string[] *
grantGrant:bool *
asRole:string -> unit
override Grant :
permission:ObjectPermissionSet *
granteeNames:string[] *
grantGrant:bool *
asRole:string -> unit
public final function Grant(
permission : ObjectPermissionSet,
granteeNames : String[],
grantGrant : boolean,
asRole : String
)
Parametry
- permission
Typ: Microsoft.SqlServer.Management.Smo.ObjectPermissionSet
ObjectPermissionSet Obiekt, który określa uprawnienia.
- 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 MessageType obiektu dla innych użytkowników.
Jeśli True, grantee jest możliwość udostępnienia innym użytkownikom typu wiadomości.
Jeśli FAŁSZ, możliwość udostępnienia innym użytkownikom typ komunikatu nie jest podana w grantee.
- asRole
Typ: System.String
A String wartość, która określa rolę użytkownika zakłada, udostępniając typ wiadomości do innych użytkowników.Ten parametr służy do stypendystów, którzy są członkami więcej niż jednej roli.
Implementacje
IObjectPermission.Grant(ObjectPermissionSet, array<String[], Boolean, String)