IActivityExtensions.GetChannelData<T>(IActivity) 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.
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
The strongly-typed object; or the type's default value, if the ChannelData is null.