Muokkaa

Jaa


X509SecurityTokenHandler.WriteToken(XmlWriter, SecurityToken) Method

Definition

Serializes the specified X.509 security token to the specified XML writer.

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

Parameters

writer
XmlWriter

The XML writer to which the token should be serialized.

token
SecurityToken

The X.509 security token to serialize. An instance of X509SecurityToken.

Exceptions

token is null.

-or-

writer is null.

token is not assignable from X509SecurityToken.

Applies to