Table of Contents

Class Audience

Namespace
ComponentSpace.Saml2.Assertions
Assembly
ComponentSpace.Saml2.dll

Represents an audience.

public class Audience
Inheritance
Audience
Inherited Members

Remarks

Refer to the Assertions and Protocol for the OASIS Security Assertion Markup Language (SAML) V2.0 specification for further details.

Constructors

Audience()

Initializes a new instance of the Audience class.

public Audience()

Audience(XmlElement)

Initializes a new instance of the Audience class from XML.

public Audience(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The audience XML.

Exceptions

SamlSerializationException

Thrown when the XML deserialization fails.

Properties

Uri

Gets or sets the URI.

public string Uri { get; set; }

Property Value

string

The URI.

Methods

IsValid(XmlElement)

Indicates whether the XML is an audience.

public static bool IsValid(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The XML to test.

Returns

bool

true if the XML is an Audience; otherwise false.

ToXml(XmlDocument)

Serializes the audience to XML.

public XmlElement ToXml(XmlDocument xmlDocument)

Parameters

xmlDocument XmlDocument

The owning XML document.

Returns

XmlElement

The audience as XML.

Exceptions

SamlSerializationException

Thrown when the XML serialization fails.