This documentation is archived and is not being maintained.

SecurityTokenSerializer.ReadTokenCore Method

Reads 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 SecurityToken ReadTokenCore (
	XmlReader reader,
	SecurityTokenResolver tokenResolver
)
protected abstract SecurityToken ReadTokenCore (
	XmlReader reader, 
	SecurityTokenResolver tokenResolver
)
protected abstract function ReadTokenCore (
	reader : XmlReader, 
	tokenResolver : SecurityTokenResolver
) : SecurityToken
Not applicable.

Parameters

reader

An XmlReader to read the security token.

tokenResolver

A SecurityTokenResolver that determines the security token type.

Return Value

A SecurityToken that represents the security token that is read.

Exception typeCondition

ArgumentNullException

reader is a null reference (Nothing in Visual Basic).

-or-

tokenResolver is a null reference (Nothing in Visual Basic).

Classes that derive from the SecurityTokenSerializer class must override the ReadTokenCore method. The ReadToken method calls the ReadTokenCore method.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Show: