SamlSecurityTokenHandler.ReadAttribute Method (XmlReader)

.NET Framework (current version)

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

Reads the <saml:Attribute> element.

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

protected virtual SamlAttribute ReadAttribute(
	XmlReader reader


Type: System.Xml.XmlReader

An XmlReader positioned at the element to read.

Return Value

Type: System.IdentityModel.Tokens.SamlAttribute

A SamlAssertion that represents the Assertion element that is read.

Exception Condition

reader is null.

The default implementation requires that the content of the Attribute element be a simple string. To handle complex content or content of declared simple types other than xs:string, override this method.

.NET Framework
Available since 4.5
Return to top