WireFormatData.To<T> Method

Definition

Deserializes the wire-format bytes as T. The target type must share the same JSON wire contract as the source type that produced this data.

public T To<T>() where T : System.ClientModel.Primitives.IPersistableModel<T>;
member this.To : unit -> 'T (requires 'T :> System.ClientModel.Primitives.IPersistableModel<'T>)
Public Function To(Of T As IPersistableModel(Of T)) () As T

Type Parameters

T

Returns

T

Exceptions

The payload could not be deserialized as T.

Applies to