Udostępnij za pośrednictwem


SecurityTokenHandler.CanReadToken Method

Definition

Overloads

CanReadToken(String)

Indicates whether the current token string can be read as a token of the type handled by this instance.

CanReadToken(XmlReader)

Indicates whether the XmlReader is positioned at an element that can be read.

CanReadToken(String)

Indicates whether the current token string can be read as a token of the type handled by this instance.

public virtual bool CanReadToken (string tokenString);
abstract member CanReadToken : string -> bool
override this.CanReadToken : string -> bool
Public Overridable Function CanReadToken (tokenString As String) As Boolean

Parameters

tokenString
String

The token string thats needs to be read.

Returns

'True' if the ReadToken method can parse the token string.

Implements

Applies to

CanReadToken(XmlReader)

Indicates whether the XmlReader is positioned at an element that can be read.

public virtual bool CanReadToken (System.Xml.XmlReader reader);
abstract member CanReadToken : System.Xml.XmlReader -> bool
override this.CanReadToken : System.Xml.XmlReader -> bool
Public Overridable Function CanReadToken (reader As XmlReader) As Boolean

Parameters

reader
XmlReader

An XmlReader reader positioned at a start element. The reader should not be advanced.

Returns

'true' if the token can be read.

Applies to