Share via


UserEventRequest.CreateResponse Method

Definition

Overloads

CreateResponse(BinaryData, WebPubSubDataType)

Create UserEventResponse.

CreateResponse(String, WebPubSubDataType)

Create UserEventResponse.

CreateResponse(BinaryData, WebPubSubDataType)

Source:
UserEventRequest.cs
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

Parameters

data
BinaryData

BinaryData message to return caller.

Returns

A message response to return caller.

Applies to

CreateResponse(String, WebPubSubDataType)

Source:
UserEventRequest.cs
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

Parameters

data
String

String message to return caller.

dataType
WebPubSubDataType

Message WebPubSubDataType, default as Text.

Returns

A message response to return caller.

Applies to