SecurityTokenSerializer.CanWriteTokenCore Method (SecurityToken)

 

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
)

Parameters

token
Type: System.IdentityModel.Tokens.SecurityToken

The SecurityToken to convert to XML.

Return Value

Type: System.Boolean

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

Exception Condition
ArgumentNullException

token is null.

Classes that derive from the SecurityTokenSerializer class must override the CanWriteTokenCore(SecurityToken) method. The CanWriteToken(SecurityToken) method calls the CanWriteTokenCore(SecurityToken) method.

.NET Framework
Available since 3.0
Return to top
Show: