Saml2SecurityTokenHandler.WriteToken(XmlWriter, SecurityToken) 方法

定义

将 SAML2 令牌写入指定的 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

用于写数据的 XmlWriter

token
SecurityToken

要写入的标记。

例外

datanull

writernull

token 不是 Saml2SecurityToken 对象。

适用于