WebPubSubChatServiceClient.DeleteTopicAsync 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.
Overloads
| Name | Description |
|---|---|
| DeleteTopicAsync(String, String, MatchConditions, RequestContext) |
[Protocol Method] Soft delete a topic.
|
| DeleteTopicAsync(String, String, MatchConditions, CancellationToken) |
Soft delete a topic. |
DeleteTopicAsync(String, String, MatchConditions, RequestContext)
[Protocol Method] Soft delete a topic.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.Threading.Tasks.Task<Azure.Response> DeleteTopicAsync(string roomId, string topicId, Azure.MatchConditions matchConditions, Azure.RequestContext context);
abstract member DeleteTopicAsync : string * string * Azure.MatchConditions * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.DeleteTopicAsync : string * string * Azure.MatchConditions * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function DeleteTopicAsync (roomId As String, topicId As String, matchConditions As MatchConditions, context As RequestContext) As Task(Of Response)
Parameters
- roomId
- String
Room identifier.
- topicId
- String
Topic identifier unique within the room.
- matchConditions
- MatchConditions
The content to send as the request conditions of the request.
- context
- RequestContext
The request options, which can override default behaviors of the client pipeline on a per-call basis.
Returns
The response returned from the service.
Exceptions
roomId or topicId is null.
roomId or topicId is an empty string, and was expected to be non-empty.
Service returned a non-success status code.
Applies to
DeleteTopicAsync(String, String, MatchConditions, CancellationToken)
Soft delete a topic.
public virtual System.Threading.Tasks.Task<Azure.Response> DeleteTopicAsync(string roomId, string topicId, Azure.MatchConditions matchConditions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteTopicAsync : string * string * Azure.MatchConditions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.DeleteTopicAsync : string * string * Azure.MatchConditions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function DeleteTopicAsync (roomId As String, topicId As String, Optional matchConditions As MatchConditions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)
Parameters
- roomId
- String
Room identifier.
- topicId
- String
Topic identifier unique within the room.
- matchConditions
- MatchConditions
The content to send as the request conditions of the request.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
Exceptions
roomId or topicId is null.
roomId or topicId is an empty string, and was expected to be non-empty.
Service returned a non-success status code.