WireFormatData.To<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 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
Exceptions
The payload could not be deserialized as T.