Saml2SecurityTokenHandler.WriteNameId(XmlWriter, Saml2NameIdentifier) Method

Definition

Writes the <saml:NameID> element.

C#
protected virtual void WriteNameId(System.Xml.XmlWriter writer, System.IdentityModel.Tokens.Saml2NameIdentifier data);

Parameters

writer
XmlWriter

The XmlWriter with which to serialize the Saml2NameIdentifier.

data
Saml2NameIdentifier

The Saml2NameIdentifier to be serialized.

Exceptions

data is null.

-or-

writer is null.

The Saml2NameIdentifier encrypting credentials must have a Symmetric Key specified.

Applies to

Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1