Partilhar via


IActivityExtensions.GetChannelData<T>(IActivity) Method

Definition

Gets the channel data for this activity as a strongly-typed object.

public static T GetChannelData<T>(this Microsoft.Agents.Core.Models.IActivity activity);
static member GetChannelData : Microsoft.Agents.Core.Models.IActivity -> 'T
<Extension()>
Public Function GetChannelData(Of T) (activity As IActivity) As T

Type Parameters

T

The type of the object to return.

Parameters

activity
IActivity

Returns

T

The strongly-typed object; or the type's default value, if the ChannelData is null.

Applies to