Table of Contents

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

xmlElement XmlElement

The 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

xmlElement XmlElement

The XML to test.

Returns

bool

true if the XML is a telephone number; otherwise false.

ToXml(XmlDocument)

Serializes the telephone number to XML.

public XmlElement ToXml(XmlDocument xmlDocument)

Parameters

xmlDocument XmlDocument

The owning XML document.

Returns

XmlElement

The telephone number as XML.

Exceptions

SamlSerializationException

Thrown when the XML serialization fails.