SamlAttribute.ReadXml Method

Definition

Reads the SAML attribute from the specified XML reader.

public virtual void ReadXml (System.Xml.XmlDictionaryReader reader, System.IdentityModel.Tokens.SamlSerializer samlSerializer, System.IdentityModel.Selectors.SecurityTokenSerializer keyInfoSerializer, System.IdentityModel.Selectors.SecurityTokenResolver outOfBandTokenResolver);

Parameters

reader
XmlDictionaryReader

A XmlDictionaryReader to read the SAML attribute.

samlSerializer
SamlSerializer

A SamlSerializer that is capable of reading XML elements in the SAML specification.

keyInfoSerializer
SecurityTokenSerializer

A SecurityTokenSerializer that reads the KeyInfo clause of the digital signature.

outOfBandTokenResolver
SecurityTokenResolver

A SecurityTokenResolver that determines the security token that created the digital signature.

Exceptions

reader is null.

-or-

samlSerializer is null.

reader refers to an XML element that does not have the AttributeName and AttributeNamespace attributes.

Remarks

The ReadXml(XmlDictionaryReader, SamlSerializer, SecurityTokenSerializer, SecurityTokenResolver) method sets the AttributeValues, Name, and Namespace properties.

Applies to

Toode Versioonid
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1