Edit

Share via


EndpointReference.ReadFrom Method

Definition

Reads an wsa:EndpointReference element from the specified reader.

Overloads

ReadFrom(XmlDictionaryReader)

Reads a wsa:EndpointReference element from the specified XML dictionary reader.

ReadFrom(XmlReader)

Reads a wsa:EndpointReference element from the specified XML reader.

Remarks

Reads the contents of the wsa:EndpointReference element and returns an EndpointReference object. The WS-Addressing namespace can be either the WS-Addressing standard schema or the WS-Addressing 1.0 standard schema. The wsa:Address element must be the first child element of the wsa:EndpointReference element. The Uri property in the returned EndpointReference is set to the URI specified by the wsa:Address element. All other child elements are added to the Details collection.

ReadFrom(XmlDictionaryReader)

Reads a wsa:EndpointReference element from the specified XML dictionary reader.

public:
 static System::IdentityModel::Protocols::WSTrust::EndpointReference ^ ReadFrom(System::Xml::XmlDictionaryReader ^ reader);
public static System.IdentityModel.Protocols.WSTrust.EndpointReference ReadFrom (System.Xml.XmlDictionaryReader reader);
static member ReadFrom : System.Xml.XmlDictionaryReader -> System.IdentityModel.Protocols.WSTrust.EndpointReference
Public Shared Function ReadFrom (reader As XmlDictionaryReader) As EndpointReference

Parameters

reader
XmlDictionaryReader

The XML dictionary reader from which to read the endpoint reference.

Returns

The endpoint reference read from the XML dictionary reader or null if the wsa:EndpointReference element cannot be read.

Remarks

See the ReadFrom overload topic for details.

Applies to

ReadFrom(XmlReader)

Reads a wsa:EndpointReference element from the specified XML reader.

public:
 static System::IdentityModel::Protocols::WSTrust::EndpointReference ^ ReadFrom(System::Xml::XmlReader ^ reader);
public static System.IdentityModel.Protocols.WSTrust.EndpointReference ReadFrom (System.Xml.XmlReader reader);
static member ReadFrom : System.Xml.XmlReader -> System.IdentityModel.Protocols.WSTrust.EndpointReference
Public Shared Function ReadFrom (reader As XmlReader) As EndpointReference

Parameters

reader
XmlReader

The XML reader from which to read the endpoint reference.

Returns

The endpoint reference read from the XML dictionary reader or null if the wsa:EndpointReference element cannot be read.

Remarks

See the ReadFrom overload topic for details.

Applies to