Udostępnij za pośrednictwem


MqttConnectEventRequest.CreateMqttV50ErrorResponse Method

Definition

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