Class ContactPerson
- Namespace
- ComponentSpace.Saml2.Metadata
- Assembly
- ComponentSpace.Saml2.dll
Represents a contact person.
public class ContactPerson : ContactType
- Inheritance
-
ContactPerson
- Inherited Members
Remarks
Refer to the Metadata for the OASIS Security Assertion Markup Language (SAML) V2.0 specification for further details.
Constructors
ContactPerson()
Initializes a new instance of the ContactPerson class.
public ContactPerson()
ContactPerson(XmlElement)
Initializes a new instance of the ContactPerson class from XML.
public ContactPerson(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe contact person XML.
Exceptions
- SamlSerializationException
Thrown when the XML deserialization fails.
Methods
IsValid(XmlElement)
Indicates whether the XML is a contact person.
public static bool IsValid(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe XML to test.
Returns
- bool
trueif the XML is a contact person; otherwisefalse.
ToXml(XmlDocument)
Serializes the contact person to XML.
public XmlElement ToXml(XmlDocument xmlDocument)
Parameters
xmlDocumentXmlDocumentThe owning XML document.
Returns
- XmlElement
The contact person as XML.
Exceptions
- SamlSerializationException
Thrown when the XML serialization fails.