EndpointAddressBuilder.SetExtensionReader(XmlDictionaryReader) 方法

定义

指定包含终结点地址扩展的 XML 字典读取器。

public:
 void SetExtensionReader(System::Xml::XmlDictionaryReader ^ reader);
public void SetExtensionReader (System.Xml.XmlDictionaryReader reader);
member this.SetExtensionReader : System.Xml.XmlDictionaryReader -> unit
Public Sub SetExtensionReader (reader As XmlDictionaryReader)

参数

reader
XmlDictionaryReader

可读取终结点扩展的 XmlDictionaryReader

示例

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

适用于