AddressHeader.GetValue(Of T) Method
[ 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.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
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 the GetValue(Of T)(XmlObjectSerializer) overload if you want to use a customized XML formatter.
The following example shows how to call this method.
'Create address headers with XmlObjectSerializer specified Dim serializer As XmlObjectSerializer = New DataContractSerializer(GetType(Integer)) Dim addressHeaderWithObjSer As AddressHeader = AddressHeader.CreateAddressHeader("MyServiceName", "http://localhost:8000/service", 1, serializer) Dim value As Integer = addressHeaderWithObjSer.GetValue(Of Integer)()