共用方式為


WebPubSubServiceClient.RevokePermission Method

Definition

Revoke permission for the connection.

public virtual Azure.Response RevokePermission (Azure.Messaging.WebPubSub.WebPubSubPermission permission, string connectionId, string targetName = default, Azure.RequestContext context = default);
abstract member RevokePermission : Azure.Messaging.WebPubSub.WebPubSubPermission * string * string * Azure.RequestContext -> Azure.Response
override this.RevokePermission : Azure.Messaging.WebPubSub.WebPubSubPermission * string * string * Azure.RequestContext -> Azure.Response
Public Overridable Function RevokePermission (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, 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