OrchestrationMetadata.ReadCustomStatusAs<T> 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.
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
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.