Compartilhar via


OrchestrationMetadata.ReadCustomStatusAs<T> Method

Definition

Deserializes the orchestration's custom status value into an object of the specified type.

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

Type Parameters

T

The type to deserialize the orchestration' custom status into.

Returns

T

Returns the deserialized custom status 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