共用方式為


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 物件。

適用於