Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ReadFrom Method (AddressingVersion, XmlDictionaryReader)

EndpointAddress.ReadFrom Method (AddressingVersion, XmlDictionaryReader)

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

Namespace:  System.ServiceModel
Assemblies:   System.ServiceModel.Primitives (in System.ServiceModel.Primitives.dll)
  System.ServiceModel (in System.ServiceModel.dll)

public static EndpointAddress ReadFrom(
	AddressingVersion addressingVersion,
	XmlDictionaryReader reader
)

Parameters

addressingVersion
Type: System.ServiceModel.Channels.AddressingVersion

The AddressingVersion of the current endpoint address.

reader
Type: System.Xml.XmlDictionaryReader

The XmlDictionaryReader from which the endpoint address is obtained.

Return Value

Type: System.ServiceModel.EndpointAddress
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);

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Portable Class Library

Supported in: Portable Class Library
Show:
© 2015 Microsoft