SecurityTokenHandler.WriteToken Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
WriteToken(SecurityToken) |
Serializes to string a token of the type handled by this instance. |
WriteToken(XmlWriter, SecurityToken) |
This must be overridden to serialize to XML a token of the type handled by this instance. |
WriteToken(SecurityToken)
Serializes to string a token of the type handled by this instance.
public virtual string WriteToken (Microsoft.IdentityModel.Tokens.SecurityToken token);
abstract member WriteToken : Microsoft.IdentityModel.Tokens.SecurityToken -> string
override this.WriteToken : Microsoft.IdentityModel.Tokens.SecurityToken -> string
Public Overridable Function WriteToken (token As SecurityToken) As String
Parameters
- token
- SecurityToken
A token of type TokenType.
Returns
The serialized token.
Applies to
WriteToken(XmlWriter, SecurityToken)
This must be overridden to serialize to XML a token of the type handled by this instance.
public abstract void WriteToken (System.Xml.XmlWriter writer, Microsoft.IdentityModel.Tokens.SecurityToken token);
abstract member WriteToken : System.Xml.XmlWriter * Microsoft.IdentityModel.Tokens.SecurityToken -> unit
Public MustOverride Sub WriteToken (writer As XmlWriter, token As SecurityToken)
Parameters
- writer
- XmlWriter
The XML writer.
- token
- SecurityToken
A token of type TokenType.
Applies to
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour