共用方式為


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

安全性權杖。

例外狀況

序列化安全性權杖時發生錯誤。

權杖未成功寫入。

適用於