Redigera

Dela via


UserNameSecurityTokenHandler.WriteToken(XmlWriter, SecurityToken) Method

Definition

Serializes the specified UserNameSecurityToken to XML.

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 use to serialize the token.

token
SecurityToken

The token to serialize.

Exceptions

writer is null.

-or-

token is null.

token is not assignable from UserNameSecurityToken.

Applies to