Share via


Saml2Serializer.WriteNameId(XmlWriter, Saml2NameIdentifier) Method

Definition

Writes the <saml:NameID> element.

protected virtual void WriteNameId (System.Xml.XmlWriter writer, Microsoft.IdentityModel.Tokens.Saml2.Saml2NameIdentifier nameIdentifier);
abstract member WriteNameId : System.Xml.XmlWriter * Microsoft.IdentityModel.Tokens.Saml2.Saml2NameIdentifier -> unit
override this.WriteNameId : System.Xml.XmlWriter * Microsoft.IdentityModel.Tokens.Saml2.Saml2NameIdentifier -> unit
Protected Overridable Sub WriteNameId (writer As XmlWriter, nameIdentifier As Saml2NameIdentifier)

Parameters

writer
XmlWriter

A XmlWriter to serialize the Saml2NameIdentifier.

nameIdentifier
Saml2NameIdentifier

The Saml2NameIdentifier to serialize.

Exceptions

if nameIdentifier null.

Applies to