Udostępnij za pośrednictwem


UserEventRequest.CreateErrorResponse(WebPubSubErrorCode, String) Method

Definition

Create EventErrorResponse. Methods works for Function Extensions. And AspNetCore SDK Hub methods can directly throw exception for error cases.

public Microsoft.Azure.WebPubSub.Common.EventErrorResponse CreateErrorResponse (Microsoft.Azure.WebPubSub.Common.WebPubSubErrorCode code, string message);
member this.CreateErrorResponse : Microsoft.Azure.WebPubSub.Common.WebPubSubErrorCode * string -> Microsoft.Azure.WebPubSub.Common.EventErrorResponse
Public Function CreateErrorResponse (code As WebPubSubErrorCode, message As String) As EventErrorResponse

Parameters

message
String

Detail error message.

Returns

A error response to return caller and will drop connection.

Applies to