Indicates whether the current XML element can be read as a token of the type handled by this instance.
Namespace: Microsoft.IdentityModel.Tokens
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim instance As SecurityTokenHandler
Dim reader As XmlReader
Dim returnValue As Boolean

returnValue = instance.CanReadToken(reader)

Syntax

Visual Basic
Public Overridable Function CanReadToken ( _
		reader As XmlReader _
) As Boolean
C#
public virtual bool CanReadToken (
		XmlReader reader
)
C++
public:
virtual bool CanReadToken (
		XmlReader^ reader
)
J#
public boolean CanReadToken (
		XmlReader reader
)
JScript
public function CanReadToken (
		reader : XmlReader
) : boolean

Parameters

reader

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

Return Value

true if the ReadToken method can read the element; otherwise, false.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

See Also