SecurityTokenSerializer.WriteToken(XmlWriter, SecurityToken) SecurityTokenSerializer.WriteToken(XmlWriter, SecurityToken) SecurityTokenSerializer.WriteToken(XmlWriter, SecurityToken) SecurityTokenSerializer.WriteToken(XmlWriter, SecurityToken) Method

Definition

Writes the specified security token using the specified XML writer.

public:
 void WriteToken(System::Xml::XmlWriter ^ writer, System::IdentityModel::Tokens::SecurityToken ^ token);
public void WriteToken (System.Xml.XmlWriter writer, System.IdentityModel.Tokens.SecurityToken token);
member this.WriteToken : System.Xml.XmlWriter * System.IdentityModel.Tokens.SecurityToken -> unit
Public Sub WriteToken (writer As XmlWriter, token As SecurityToken)

Parameters

writer
XmlWriter XmlWriter XmlWriter XmlWriter

A XmlWriter to write the security token.

token
SecurityToken SecurityToken SecurityToken SecurityToken

A SecurityToken that represents the security token to write.

Exceptions

Remarks

Classes that derive from the SecurityTokenSerializer class must override the WriteTokenCore(XmlWriter, SecurityToken) method. The WriteToken(XmlWriter, SecurityToken) method calls the WriteTokenCore(XmlWriter, SecurityToken) method.

Applies to