AddressHeader.GetValue<T> Method (XmlObjectSerializer)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Deserializes the information item from the current address header to an object of a specified type that uses a specified formatter to serialize this information.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Type Parameters
- T
A class of type T with its fields and properties set to the values supplied by the current address header object.
Parameters
- serializer
- Type: System.Runtime.Serialization.XmlObjectSerializer
The XmlObjectSerializer used to deserialize the information item from the current address header object.
Return Value
Type: TAn instance of a class of type T with its fields and properties set to the values supplied by the current address header object.
| Exception | Condition |
|---|---|
| ArgumentNullException | The serializer is null. |
When using this overload, you must supply a type for the generic parameter T. The type of the return value is determined by the generic type parameter.
Use this overload only if you want to use a customized XML formatter; otherwise use the GetValue<T>() overload.