MqttConnectEventRequest.CreateMqttV50ErrorResponse 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.
Creates error response for MQTT protocol 5.0.
public Microsoft.Azure.WebPubSub.Common.MqttConnectEventErrorResponse CreateMqttV50ErrorResponse(Microsoft.Azure.WebPubSub.Common.MqttV500ConnectReasonCode code, string? message = default);
member this.CreateMqttV50ErrorResponse : Microsoft.Azure.WebPubSub.Common.MqttV500ConnectReasonCode * string -> Microsoft.Azure.WebPubSub.Common.MqttConnectEventErrorResponse
Public Function CreateMqttV50ErrorResponse (code As MqttV500ConnectReasonCode, Optional message As String = Nothing) As MqttConnectEventErrorResponse
Parameters
- message
- String
Returns
A error response to return caller and will drop connection.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET