SecurityTokenHandlerCollection.CanWriteToken(SecurityToken) Method

Definition

Returns a value that indicates whether the specified token can be serialized by one of the handlers in this collection.

public bool CanWriteToken (System.IdentityModel.Tokens.SecurityToken token);

Parameters

token
SecurityToken

The security token to be serialized.

Returns

true if the token can be serialized by one of the handlers; otherwise false.

Applies to

Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1