SamlSerializer.WriteSubject(XmlWriter, SamlSubject) 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:Subject> element.
protected virtual void WriteSubject (System.Xml.XmlWriter writer, Microsoft.IdentityModel.Tokens.Saml.SamlSubject subject);
abstract member WriteSubject : System.Xml.XmlWriter * Microsoft.IdentityModel.Tokens.Saml.SamlSubject -> unit
override this.WriteSubject : System.Xml.XmlWriter * Microsoft.IdentityModel.Tokens.Saml.SamlSubject -> unit
Protected Overridable Sub WriteSubject (writer As XmlWriter, subject As SamlSubject)
Parameters
- writer
- XmlWriter
A XmlWriter to serialize the SamlSubject.
- subject
- SamlSubject
The SamlSubject to serialize.
Exceptions
if subject
is null.
if SamlEvidence does not contain any assertions or assertions references.