Share via


InteractionResult.Ok<T>(T) Method

Definition

Creates a new InteractionResult<T> with the specified result and a flag indicating that the interaction was not canceled.

public static Aspire.Hosting.InteractionResult<T> Ok<T>(T result);
static member Ok : 'T -> Aspire.Hosting.InteractionResult<'T>
Public Shared Function Ok(Of T) (result As T) As InteractionResult(Of T)

Type Parameters

T

The type of the data associated with the interaction result.

Parameters

result
T

The data returned from the interaction.

Returns

The new InteractionResult<T>.

Applies to