Table of Contents

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

subject Subject

The subject.

SubjectQuery(XmlElement)

Initializes a new instance of the SubjectQuery class from XML.

public SubjectQuery(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The 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

xmlElement XmlElement

The XML to test.

Returns

bool

true if the XML is a subject query; otherwise false.

ToXml(XmlDocument)

Serializes the subject query to XML.

public override XmlElement ToXml(XmlDocument xmlDocument)

Parameters

xmlDocument XmlDocument

The owning XML document.

Returns

XmlElement

The subject query as XML.

Exceptions

SamlSerializationException

Thrown when the XML serialization fails.