EndpointAddressBuilder.SetExtensionReader Method (XmlDictionaryReader)

 

Specifies the XML dictionary reader that contains the extensions of the endpoint address.

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

public void SetExtensionReader(
	XmlDictionaryReader reader
)

Parameters

reader
Type: System.Xml.XmlDictionaryReader

The XmlDictionaryReader that reads the extensions of the endpoint.

StringReader sr = new StringReader(@"<myExtension xmlns=""myExtNs"" />");
eab.SetExtensionReader(XmlDictionaryReader.CreateDictionaryReader(XmlReader.Create(sr)));

.NET Framework
Available since 3.0
Return to top
Show: