Share via


Chain.Return<T>(T) Method

Definition

Creates a IDialog<TResult> that returns a value.

public static Microsoft.Bot.Builder.Dialogs.IDialog<T> Return<T> (T item);
static member Return : 'T -> Microsoft.Bot.Builder.Dialogs.IDialog<'T>
Public Function Return(Of T) (item As T) As IDialog(Of T)

Type Parameters

T

Type of the value.

Parameters

item
T

The value to be wrapped.

Returns

IDialog<T>

The IDialog<TResult> that wraps the value.

Remarks

The type of the value should be serializable.

Applies to