Class TelephoneNumber
- Namespace
- ComponentSpace.Saml2.Metadata
- Assembly
- ComponentSpace.Saml2.dll
Represents the telephone number.
public class TelephoneNumber
- Inheritance
-
TelephoneNumber
- Inherited Members
Remarks
Refer to the Metadata for the OASIS Security Assertion Markup Language (SAML) V2.0 specification for further details.
Constructors
TelephoneNumber()
Initializes a new instance of the TelephoneNumber class.
public TelephoneNumber()
TelephoneNumber(XmlElement)
Initializes a new instance of the TelephoneNumber class from XML.
public TelephoneNumber(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe telephone number XML.
Exceptions
- SamlSerializationException
Thrown when the XML deserialization fails.
Properties
Number
Gets or sets the telephone number.
public string Number { get; set; }
Property Value
- string
The telephone number.
Methods
IsValid(XmlElement)
Indicates whether the XML is a telephone number.
public static bool IsValid(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe XML to test.
Returns
- bool
trueif the XML is a telephone number; otherwisefalse.
ToXml(XmlDocument)
Serializes the telephone number to XML.
public XmlElement ToXml(XmlDocument xmlDocument)
Parameters
xmlDocumentXmlDocumentThe owning XML document.
Returns
- XmlElement
The telephone number as XML.
Exceptions
- SamlSerializationException
Thrown when the XML serialization fails.