Saml2SecurityTokenHandler.WriteNameIdType Method (XmlWriter, Saml2NameIdentifier)

.NET Framework (current version)
 

Both <Issuer> and <NameID> are of NameIDType. This method writes the content of either one of those elements.

Namespace:   System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

protected virtual void WriteNameIdType(
	XmlWriter writer,
	Saml2NameIdentifier data
)

Parameters

writer
Type: System.Xml.XmlWriter

The XmlWriter with which to serialize the NameID type.

data
Type: System.IdentityModel.Tokens.Saml2NameIdentifier

The Saml2NameIdentifier to write.

Exception Condition
ArgumentNullException

data is null.

-or-

writer is null.

.NET Framework
Available since 4.5
Return to top
Show: