WSSecurityTokenSerializer.WriteTokenCore(XmlWriter, SecurityToken) 方法

定义

使用指定的 XmlWriter 写入带有指定安全令牌的令牌核心。

protected:
 override void WriteTokenCore(System::Xml::XmlWriter ^ writer, System::IdentityModel::Tokens::SecurityToken ^ inToken);
protected:
 override void WriteTokenCore(System::Xml::XmlWriter ^ writer, System::IdentityModel::Tokens::SecurityToken ^ token);
protected override void WriteTokenCore (System.Xml.XmlWriter writer, System.IdentityModel.Tokens.SecurityToken inToken);
protected override void WriteTokenCore (System.Xml.XmlWriter writer, System.IdentityModel.Tokens.SecurityToken token);
override this.WriteTokenCore : System.Xml.XmlWriter * System.IdentityModel.Tokens.SecurityToken -> unit
override this.WriteTokenCore : System.Xml.XmlWriter * System.IdentityModel.Tokens.SecurityToken -> unit
Protected Overrides Sub WriteTokenCore (writer As XmlWriter, inToken As SecurityToken)
Protected Overrides Sub WriteTokenCore (writer As XmlWriter, token As SecurityToken)

参数

writer
XmlWriter

指定的 XmlWriter。

inTokentoken
SecurityToken

安全令牌。

例外

序列化安全令牌时发生错误。

令牌未成功写入。

适用于