SamlSecurityTokenHandler.ReadSubject Method (XmlReader)

.NET Framework (current version)
 

Reads the <saml:Subject> element.

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

protected virtual SamlSubject ReadSubject(
	XmlReader reader
)

Parameters

reader
Type: System.Xml.XmlReader

An XmlReader positioned at the element to read.

Return Value

Type: System.IdentityModel.Tokens.SamlSubject

A SamlSubject that represents the Subject element that was read.

Exception Condition
ArgumentNullException

reader is null.

The default implementation does not handle the optional <EncryptedID> element. To handle encryped IDs in the Subject, override this method.

.NET Framework
Available since 4.5
Return to top
Show: