共用方式為


SamlSecurityTokenHandler.WriteAssertion(XmlWriter, SamlAssertion) 方法

定義

將指定的 SAML 判斷提示序列化至指定的 XML 寫入器。

protected:
 virtual void WriteAssertion(System::Xml::XmlWriter ^ writer, System::IdentityModel::Tokens::SamlAssertion ^ assertion);
protected virtual void WriteAssertion (System.Xml.XmlWriter writer, System.IdentityModel.Tokens.SamlAssertion assertion);
abstract member WriteAssertion : System.Xml.XmlWriter * System.IdentityModel.Tokens.SamlAssertion -> unit
override this.WriteAssertion : System.Xml.XmlWriter * System.IdentityModel.Tokens.SamlAssertion -> unit
Protected Overridable Sub WriteAssertion (writer As XmlWriter, assertion As SamlAssertion)

參數

writer
XmlWriter

要用於序列化的 XmlWriter

assertion
SamlAssertion

表示要序列化之判斷提示的 SamlAssertion

例外狀況

writernull

-或-

assertionnull

權杖加密認證沒有指定的對稱金鑰。

適用於