GetValue(T) Method (XmlObjectSerializer)
Collapse the table of content
Expand the table of content

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.

Namespace:  System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public T GetValue<T>(
	XmlObjectSerializer serializer
)

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: T
An instance of a class of type T with its fields and properties set to the values supplied by the current address header object.

ExceptionCondition
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.

The following example shows how to call this method.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft