SecurityTokenSerializer.CanReadTokenCore Method (XmlReader)

 

Determines whether this serializer can read the security token pointed at by the specified XML reader. Called by the base class.

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

protected abstract bool CanReadTokenCore(
	XmlReader reader
)

Parameters

reader
Type: System.Xml.XmlReader

An XmlReader to read the security token.

Return Value

Type: System.Boolean

true when the security token can be read; otherwise, false.

Exception Condition
ArgumentNullException

reader is null.

Classes that derive from the SecurityTokenSerializer class must override the CanReadTokenCore(XmlReader) method. The CanReadToken(XmlReader) method calls the CanReadTokenCore method.

.NET Framework
Available since 3.0
Return to top
Show: