Freigeben über


UserEventRequest.CreateResponse Methode

Definition

Überlädt

CreateResponse(BinaryData, WebPubSubDataType)

Erstellen Sie UserEventResponse.

CreateResponse(String, WebPubSubDataType)

Erstellen Sie UserEventResponse.

CreateResponse(BinaryData, WebPubSubDataType)

Quelle:
UserEventRequest.cs

Erstellen Sie UserEventResponse.

public Microsoft.Azure.WebPubSub.Common.UserEventResponse CreateResponse(BinaryData data, Microsoft.Azure.WebPubSub.Common.WebPubSubDataType dataType);
member this.CreateResponse : BinaryData * Microsoft.Azure.WebPubSub.Common.WebPubSubDataType -> Microsoft.Azure.WebPubSub.Common.UserEventResponse
Public Function CreateResponse (data As BinaryData, dataType As WebPubSubDataType) As UserEventResponse

Parameter

data
BinaryData

BinaryData-Nachricht, die den Aufrufer zurückgeben soll.

Gibt zurück

Eine Nachrichtenantwort, um den Aufrufer zurückzugeben.

Gilt für:

CreateResponse(String, WebPubSubDataType)

Quelle:
UserEventRequest.cs

Erstellen Sie UserEventResponse.

public Microsoft.Azure.WebPubSub.Common.UserEventResponse CreateResponse(string data, Microsoft.Azure.WebPubSub.Common.WebPubSubDataType dataType = Microsoft.Azure.WebPubSub.Common.WebPubSubDataType.Text);
member this.CreateResponse : string * Microsoft.Azure.WebPubSub.Common.WebPubSubDataType -> Microsoft.Azure.WebPubSub.Common.UserEventResponse
Public Function CreateResponse (data As String, Optional dataType As WebPubSubDataType = Microsoft.Azure.WebPubSub.Common.WebPubSubDataType.Text) As UserEventResponse

Parameter

data
String

Zeichenfolgenmeldung zum Zurückgeben des Aufrufers.

dataType
WebPubSubDataType

Meldung WebPubSubDataType, standard als Text.

Gibt zurück

Eine Nachrichtenantwort, um den Aufrufer zurückzugeben.

Gilt für: