共用方式為


SamlAssertion.WriteXml 方法

定義

將這個 SAML 判斷提示當做 <saml:Assertion> 項目寫入至指定的 XML 寫入器。

public:
 virtual void WriteXml(System::Xml::XmlDictionaryWriter ^ writer, System::IdentityModel::Tokens::SamlSerializer ^ samlSerializer, System::IdentityModel::Selectors::SecurityTokenSerializer ^ keyInfoSerializer);
public virtual void WriteXml (System.Xml.XmlDictionaryWriter writer, System.IdentityModel.Tokens.SamlSerializer samlSerializer, System.IdentityModel.Selectors.SecurityTokenSerializer keyInfoSerializer);
abstract member WriteXml : System.Xml.XmlDictionaryWriter * System.IdentityModel.Tokens.SamlSerializer * System.IdentityModel.Selectors.SecurityTokenSerializer -> unit
override this.WriteXml : System.Xml.XmlDictionaryWriter * System.IdentityModel.Tokens.SamlSerializer * System.IdentityModel.Selectors.SecurityTokenSerializer -> unit
Public Overridable Sub WriteXml (writer As XmlDictionaryWriter, samlSerializer As SamlSerializer, keyInfoSerializer As SecurityTokenSerializer)

參數

writer
XmlDictionaryWriter

要寫入 SAML 判斷提示的 XmlDictionaryWriter

samlSerializer
SamlSerializer

SamlSerializer,它能夠將 SamlAssertion 中的物件寫入至 XML。

keyInfoSerializer
SecurityTokenSerializer

SecurityTokenSerializer,它可以寫入 KeyInfo 子句。

例外狀況

writernull

-或-

samlSerializernull

SamlAssertion 已經設定成如果將它序列化成 XML,將會導致與 SAML v1.1 規格不相符。

適用於