共用方式為


UserNameSecurityTokenHandler.WriteToken(XmlWriter, SecurityToken) 方法

定義

將指定的 UserNameSecurityToken 序列化為 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)

參數

writer
XmlWriter

要用來序列化權杖的 XML 寫入器。

token
SecurityToken

要序列化的權杖。

例外狀況

writernull

-或-

tokennull

適用於