CanReadToken Method (XmlReader)
Collapse the table of content
Expand the table of content

UserNameSecurityTokenHandler.CanReadToken Method (XmlReader)

.NET Framework 4.6 and 4.5

Indicates whether the current XML element can be read as a UserNameSecurityToken.

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

public override bool CanReadToken(
	XmlReader reader


Type: System.Xml.XmlReader

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

Return Value

Type: System.Boolean

true if the reader is pointing to a UserNameSecurityToken; otherwise, false.

.NET Framework
Available since 4.5
Return to top
© 2015 Microsoft