EndpointAddress.ReadFrom Method (AddressingVersion, XmlDictionaryReader)

Reads an endpoint address for a specified address version from a specified XML dictionary reader.

Namespace: System.ServiceModel
Assembly: System.ServiceModel (in system.servicemodel.dll)

public static EndpointAddress ReadFrom (
	AddressingVersion addressingVersion,
	XmlDictionaryReader reader
)
public static EndpointAddress ReadFrom (
	AddressingVersion addressingVersion, 
	XmlDictionaryReader reader
)
public static function ReadFrom (
	addressingVersion : AddressingVersion, 
	reader : XmlDictionaryReader
) : EndpointAddress
Not applicable.

Parameters

addressingVersion

The AddressingVersion of the current endpoint address.

reader

The XmlDictionaryReader from which the endpoint address is obtained.

Return Value

The EndpointAddress read from the XML dictionary reader.

XmlReader reader = XmlReader.Create("addressdata.xml");
XmlDictionaryReader dictReader = XmlDictionaryReader.CreateDictionaryReader(reader);
EndpointAddress createdEA = EndpointAddress.ReadFrom
                (AddressingVersion.WSAddressing10,
                 dictReader);

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: