Class SubjectQuery
- Namespace
- ComponentSpace.Saml2.Protocols
- Assembly
- ComponentSpace.Saml2.dll
Represents a subject query.
public class SubjectQuery : SubjectQueryAbstractType
- Inheritance
-
SubjectQuery
- Inherited Members
Remarks
Refer to the Assertions and Protocol for the OASIS Security Assertion Markup Language (SAML) V2.0 specification for further details.
Constructors
SubjectQuery()
Initializes a new instance of the SubjectQuery class.
public SubjectQuery()
SubjectQuery(Subject)
Initializes a new instance of the SubjectQuery class.
public SubjectQuery(Subject subject)
Parameters
subjectSubjectThe subject.
SubjectQuery(XmlElement)
Initializes a new instance of the SubjectQuery class from XML.
public SubjectQuery(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe subject query XML.
Exceptions
- SamlSerializationException
Thrown when the XML deserialization fails.
Methods
IsValid(XmlElement)
Indicates whether the XML is a subject query.
public static bool IsValid(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe XML to test.
Returns
- bool
trueif the XML is a subject query; otherwisefalse.
ToXml(XmlDocument)
Serializes the subject query to XML.
public override XmlElement ToXml(XmlDocument xmlDocument)
Parameters
xmlDocumentXmlDocumentThe owning XML document.
Returns
- XmlElement
The subject query as XML.
Exceptions
- SamlSerializationException
Thrown when the XML serialization fails.