SamlAssertion.WriteXml Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Writes the SAML assertion into the specified XML writer as a <saml:Assertion>
element.
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)
Parameters
- writer
- XmlDictionaryWriter
A XmlDictionaryWriter to write the SAML assertion.
- samlSerializer
- SamlSerializer
A SamlSerializer that is capable of writing the objects in the SamlAssertion to XML.
- keyInfoSerializer
- SecurityTokenSerializer
A SecurityTokenSerializer that is capable of writing KeyInfo
clauses.
Exceptions
the SamlAssertion is configured such that serializing it into XML would result non-compliance with the SAML v1.1 specification.