Class Organization
Represents an organization.
Inheritance
Inherited Members
Namespace: ComponentSpace.Saml2.Metadata
Assembly: ComponentSpace.Saml2.dll
Syntax
public class Organization
Remarks
Refer to the Metadata for the OASIS Security Assertion Markup Language (SAML) V2.0 specification for further details.
Constructors
Organization()
Initializes a new instance of the Organization
class.
Declaration
public Organization()
Organization(XmlElement)
Initializes a new instance of the Organization
class from XML.
Declaration
public Organization(XmlElement xmlElement)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlElement | xmlElement | The organization XML. |
Exceptions
Type | Condition |
---|---|
SamlSerializationException | Thrown when the XML deserialization fails. |
Properties
Extensions
Gets or sets the extensions.
Declaration
public Extensions Extensions { get; set; }
Property Value
Type | Description |
---|---|
Extensions | The extensions. |
OrganizationDisplayNames
Gets or sets the list of organization display names.
Declaration
public IList<OrganizationDisplayName> OrganizationDisplayNames { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<OrganizationDisplayName> | The list of organization display names. |
OrganizationNames
Gets or sets the list of organization names.
Declaration
public IList<OrganizationName> OrganizationNames { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<OrganizationName> | The list of organization names. |
OrganizationUrls
Gets or sets the list of organization URLs.
Declaration
public IList<OrganizationUrl> OrganizationUrls { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<OrganizationUrl> | The list of organization URLs. |
Methods
IsValid(XmlElement)
Indicates whether the XML is an organization.
Declaration
public static bool IsValid(XmlElement xmlElement)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlElement | xmlElement | The XML to test. |
Returns
Type | Description |
---|---|
System.Boolean |
|
ToXml(XmlDocument)
Serializes the organization to XML.
Declaration
public XmlElement ToXml(XmlDocument xmlDocument)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlDocument | xmlDocument | The owning XML document. |
Returns
Type | Description |
---|---|
System.Xml.XmlElement | The organization as XML. |
Exceptions
Type | Condition |
---|---|
SamlSerializationException | Thrown when the XML serialization fails. |