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
xmlElementXmlElementThe 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
xmlElementXmlElementThe XML to test.
Returns
- bool
trueif the XML is an email address; otherwisefalse.
ToXml(XmlDocument)
Serializes the email address to XML.
public XmlElement ToXml(XmlDocument xmlDocument)
Parameters
xmlDocumentXmlDocumentThe owning XML document.
Returns
- XmlElement
The email address as XML.
Exceptions
- SamlSerializationException
Thrown when the XML serialization fails.