WSTrust13ResponseSerializer.CanRead Method (XmlReader)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Checks if the specified XML reader is positioned at a RequestSecurityTokenResponse or a RequestSecurityTokenResponseCollection element with namespace ”http://docs.oasis-open.org/ws-sx/ws-trust/200512”.

Namespace:   System.IdentityModel.Protocols.WSTrust
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public override bool CanRead(
	XmlReader reader
)

Parameters

reader
Type: System.Xml.XmlReader

The XmlReader object from which to read.

Return Value

Type: System.Boolean

true if the reader is positioned at a RequestSecurityTokenResponse or a RequestSecurityTokenResponseCollection element with namespace “http://docs.oasis-open.org/ws-sx/ws-trust/200512”; otherwise, false.

Exception Condition
ArgumentNullException

reader is null.

.NET Framework
Available since 4.5
Return to top
Show: