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.

C#
public static System.IdentityModel.Protocols.WSTrust.EndpointReference ReadFrom(System.Xml.XmlDictionaryReader reader);

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

.NET Framework 4.8.1 i druge verzije
Proizvod Verzije
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

ReadFrom(XmlReader)

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

C#
public static System.IdentityModel.Protocols.WSTrust.EndpointReference ReadFrom(System.Xml.XmlReader reader);

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

.NET Framework 4.8.1 i druge verzije
Proizvod Verzije
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1