UserNameSecurityTokenHandler.CanReadToken Method (XmlReader)

.NET Framework (current version)

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