Saml2SecurityTokenHandler::ReadNameId Method (XmlReader^)

.NET Framework (current version)
 

Reads the <saml:NameID> element.

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

protected:
virtual Saml2NameIdentifier^ ReadNameId(
	XmlReader^ reader
)

Parameters

reader
Type: System.Xml::XmlReader^

An XmlReader positioned at a NameID element.

Return Value

Type: System.IdentityModel.Tokens::Saml2NameIdentifier^

A Saml2NameIdentifier that represents the NameID element that was read.

Exception Condition
ArgumentNullException

reader is null.

.NET Framework
Available since 4.5
Return to top
Show: