SecurityTokenHandlerCollection::WriteToken Method (SecurityToken^)
.NET Framework (current version)
Serializes the specified security token to a string.
Assembly: System.IdentityModel (in System.IdentityModel.dll)
Parameters
- token
-
Type:
System.IdentityModel.Tokens::SecurityToken^
The token to serialize.
| Exception | Condition |
|---|---|
| ArgumentNullException | token is null. |
| InvalidOperationException | The collection does not contain a handler capable of serializing the specified token. |
.NET Framework
Available since 4.5
Available since 4.5
Show: