Udostępnij za pośrednictwem


SamlSerializer.WriteSubject(XmlWriter, SamlSubject) Method

Definition

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.

Applies to