WebPubSubServiceClient.RevokePermissionAsync 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.
Revoke permission for the connection.
public virtual System.Threading.Tasks.Task<Azure.Response> RevokePermissionAsync (Azure.Messaging.WebPubSub.WebPubSubPermission permission, string connectionId, string targetName = default, Azure.RequestContext context = default);
abstract member RevokePermissionAsync : Azure.Messaging.WebPubSub.WebPubSubPermission * string * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.RevokePermissionAsync : Azure.Messaging.WebPubSub.WebPubSubPermission * string * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function RevokePermissionAsync (permission As WebPubSubPermission, connectionId As String, Optional targetName As String = Nothing, Optional context As RequestContext = Nothing) As Task(Of Response)
Parameters
- permission
- WebPubSubPermission
The permission: current supported actions are joinLeaveGroup and sendToGroup.
- connectionId
- String
Target connection Id.
- targetName
- String
Optional. If not set, revoke the permission for all targets. If set, revoke the permission for the specific target. The meaning of the target depends on the specific permission.
- context
- RequestContext
Options specifying the cancellation token, controlling error reporting, etc.
Returns
Applies to
Azure SDK for .NET