SessionSecurityTokenHandler.CanReadToken Method (XmlReader)

.NET Framework (current version)
 

Returns a value that indicates whether the reader is positioned at a <wsc:SecurityContextToken> element.

Namespace:   System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public override bool CanReadToken(
	XmlReader reader
)

Parameters

reader
Type: System.Xml.XmlReader

The XmlReader over the incoming SecurityToken. The reader should be positioned at a <wsc:SecurityContextToken> element.

Return Value

Type: System.Boolean

true if the reader points to a <wsc:SecurityContextToken> element; otherwise, false.

Exception Condition
ArgumentNullException

reader is null.

.NET Framework
Available since 4.5
Return to top
Show: