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

适用于