Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

AddressHeader::GetValue<T> Method (XmlObjectSerializer^)

 

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:
generic<typename T>
T GetValue(
	XmlObjectSerializer^ serializer
)

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.

Type Parameters

T

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.

The following example shows how to call this method.

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2017 Microsoft