Table of Contents

Class EmailAddress

Namespace
ComponentSpace.Saml2.Metadata
Assembly
ComponentSpace.Saml2.dll

Represents the email address.

public class EmailAddress
Inheritance
EmailAddress
Inherited Members

Remarks

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

Constructors

EmailAddress()

Initializes a new instance of the EmailAddress class.

public EmailAddress()

EmailAddress(XmlElement)

Initializes a new instance of the EmailAddress class from XML.

public EmailAddress(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The email address XML.

Exceptions

SamlSerializationException

Thrown when the XML deserialization fails.

Properties

Address

Gets or sets the email address.

public string Address { get; set; }

Property Value

string

The email address.

Methods

IsValid(XmlElement)

Indicates whether the XML is an email address.

public static bool IsValid(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The XML to test.

Returns

bool

true if the XML is an email address; otherwise false.

ToXml(XmlDocument)

Serializes the email address to XML.

public XmlElement ToXml(XmlDocument xmlDocument)

Parameters

xmlDocument XmlDocument

The owning XML document.

Returns

XmlElement

The email address as XML.

Exceptions

SamlSerializationException

Thrown when the XML serialization fails.