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