SecurityTokenSerializer.CanWriteTokenCore Method

Determines whether this serializer can write the specified security token to XML. Called by the base class.

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

protected abstract bool CanWriteTokenCore (
	SecurityToken token
)
protected abstract boolean CanWriteTokenCore (
	SecurityToken token
)
protected abstract function CanWriteTokenCore (
	token : SecurityToken
) : boolean
Not applicable.

Parameters

token

The SecurityToken to convert to XML.

Return Value

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

Exception typeCondition

ArgumentNullException

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

Classes that derive from the SecurityTokenSerializer class must override the CanWriteTokenCore method. The CanWriteToken method calls the CanWriteTokenCore 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

Community Additions

ADD
Show: