Saml2SecurityTokenHandler.ReadSubjectId Method (XmlReader, String)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

This method handles the construct used in the <Subject> and <SubjectConfirmation> elements for ID.

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

protected virtual Saml2NameIdentifier ReadSubjectId(
	XmlReader reader,
	string parentElement
)

Parameters

reader
Type: System.Xml.XmlReader

An XmlReader positioned at the Subject ID XML.

parentElement
Type: System.String

The parent element that contains this Subject ID.

Return Value

Type: System.IdentityModel.Tokens.Saml2NameIdentifier

A Saml2NameIdentifier constructed from the XML.

Exception Condition
ArgumentNullException

reader is null.

.NET Framework
Available since 4.5
Return to top
Show: