Class AttributeQuery
- Namespace
- ComponentSpace.Saml2.Protocols
- Assembly
- ComponentSpace.Saml2.dll
Represents an attribute query.
public class AttributeQuery : SubjectQueryAbstractType
- Inheritance
-
AttributeQuery
- Inherited Members
Remarks
Refer to the Assertions and Protocol for the OASIS Security Assertion Markup Language (SAML) V2.0 specification for further details.
Constructors
AttributeQuery()
Initializes a new instance of the AttributeQuery class.
public AttributeQuery()
AttributeQuery(XmlElement)
Initializes a new instance of the AttributeQuery class from XML.
public AttributeQuery(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe attribute query XML.
Exceptions
- SamlSerializationException
Thrown when the XML deserialization fails.
Properties
Attributes
Gets or sets the attributes.
public IList<SamlAttribute> Attributes { get; set; }
Property Value
- IList<SamlAttribute>
The attributes.
Methods
IsValid(XmlElement)
Indicates whether the XML is an attribute query.
public static bool IsValid(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe XML to test.
Returns
- bool
trueif the XML is an attribute query; otherwisefalse.
ToXml(XmlDocument)
Serializes the attribute query to XML.
public override XmlElement ToXml(XmlDocument xmlDocument)
Parameters
xmlDocumentXmlDocumentThe owning XML document.
Returns
- XmlElement
The attribute query as XML.
Exceptions
- SamlSerializationException
Thrown when the XML serialization fails.