Bagikan melalui


SamlAssertion.WriteXml Metode

Definisi

Menulis pernyataan SAML ke dalam penulis XML yang ditentukan sebagai <saml:Assertion> elemen.

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)

Parameter

writer
XmlDictionaryWriter

A XmlDictionaryWriter untuk menulis pernyataan SAML.

samlSerializer
SamlSerializer

SamlSerializer yang mampu menulis objek dalam SamlAssertion ke XML.

keyInfoSerializer
SecurityTokenSerializer

SecurityTokenSerializer Yang mampu menulis KeyInfo klausul.

Pengecualian

writer is null

-atau-

samlSerializer is null

dikonfigurasi SamlAssertion sehingga serialisasi ke XML akan mengakibatkan ketidakpatuhan terhadap spesifikasi SAML v1.1.

Berlaku untuk