This documentation is archived and is not being maintained.
SecurityTokenAuthenticator::CanValidateToken Method
Visual Studio 2010
Gets a value indicating whether the specified security token can be validated by this security token authenticator.
Assembly: System.IdentityModel (in System.IdentityModel.dll)
Parameters
- token
- Type: System.IdentityModel.Tokens::SecurityToken
The SecurityToken to be validated.
| Exception | Condition |
|---|---|
| ArgumentNullException | token is nullptr. |
The CanValidateToken method checks whether the token parameter is nullptr and then calls the CanValidateTokenCore method to determine whether this security token authenticator can authenticate the security token type for token.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: