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

AddressHeader.GetValue Generic 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 T GetValue<T> (
	XmlObjectSerializer serializer
)
J# supports the use of generic types and methods, but not the declaration of new ones.
JScript does not support generic types and methods.
Not applicable.

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

The XmlObjectSerializer used to deserialize the information item from the current address header object.

Return Value

An instance of a class of type T with its fields and properties set to the values supplied by the current address header object.

Exception typeCondition

ArgumentNullException

The serializer is a null reference (Nothing in Visual Basic).

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

The following code snippet illustrates calling this method:

ah1.GetValue<MyObject>(serializer);

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2016 Microsoft