ConnectEventRequest.CreateErrorResponse(WebPubSubErrorCode, String) 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.
Create EventErrorResponse. Methods works for Function Extensions. And AspNetCore SDK Hub methods can directly throw exception for error cases.
public static Microsoft.Azure.Functions.Worker.EventErrorResponse CreateErrorResponse (Microsoft.Azure.Functions.Worker.WebPubSubErrorCode code, string message);
static member CreateErrorResponse : Microsoft.Azure.Functions.Worker.WebPubSubErrorCode * string -> Microsoft.Azure.Functions.Worker.EventErrorResponse
Public Shared 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
Совместная работа с нами на GitHub
Источник этого содержимого можно найти на GitHub, где также можно создавать и просматривать проблемы и запросы на вытягивание. Дополнительные сведения см. в нашем руководстве для участников.
Azure SDK for .NET