Compartilhar via


OrchestrationMetadata.ReadOutputAs<T> Method

Definition

Deserializes the orchestration's output into an object of the specified type.

public T? ReadOutputAs<T> ();
member this.ReadOutputAs : unit -> 'T
Public Function ReadOutputAs(Of T) () As T

Type Parameters

T

The type to deserialize the orchestration output into.

Returns

T

Returns the deserialized output value.

Exceptions

Thrown if this metadata object was fetched without the option to read inputs and outputs.

Remarks

This method can only be used when inputs and outputs are explicitly requested from the GetInstancesAsync(String, CancellationToken) or WaitForInstanceCompletionAsync(String, CancellationToken) method that produced this OrchestrationMetadata object.

Applies to