Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

Saml2SecurityTokenHandler::ReadNameId Method

.NET Framework 4.6 and 4.5

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.

ExceptionCondition
ArgumentNullException

reader is nullptr.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft