WebPubSubServiceClient.GrantPermission Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Grant permission to the connection.
public virtual Azure.Response GrantPermission (Azure.Messaging.WebPubSub.WebPubSubPermission permission, string connectionId, string targetName = default, Azure.RequestContext context = default);
abstract member GrantPermission : Azure.Messaging.WebPubSub.WebPubSubPermission * string * string * Azure.RequestContext -> Azure.Response
override this.GrantPermission : Azure.Messaging.WebPubSub.WebPubSubPermission * string * string * Azure.RequestContext -> Azure.Response
Public Overridable Function GrantPermission (permission As WebPubSubPermission, connectionId As String, Optional targetName As String = Nothing, Optional context As RequestContext = Nothing) As Response
Parameters
- permission
- WebPubSubPermission
The permission: current supported actions are joinLeaveGroup and sendToGroup.
- connectionId
- String
Target connection Id.
- targetName
- String
Optional. If not set, grant the permission to all the targets. If set, grant the permission to the specific target. The meaning of the target depends on the specific permission.
- context
- RequestContext
Options specifying the cancellation token, controlling error reporting, etc.