Table of Contents

Class ServiceDescription

Namespace
ComponentSpace.Saml2.Metadata
Assembly
ComponentSpace.Saml2.dll

Represents the service description.

public class ServiceDescription : LocalizedNameType
Inheritance
ServiceDescription
Inherited Members

Remarks

Refer to the Metadata for the OASIS Security Assertion Markup Language (SAML) V2.0 specification for further details.

Constructors

ServiceDescription()

Initializes a new instance of the ServiceDescription class.

public ServiceDescription()

ServiceDescription(XmlElement)

Initializes a new instance of the ServiceDescription class from XML.

public ServiceDescription(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The service description XML.

Exceptions

SamlSerializationException

Thrown when the XML deserialization fails.

Methods

IsValid(XmlElement)

Indicates whether the XML is a service description.

public static bool IsValid(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The XML to test.

Returns

bool

true if the XML is a service description; otherwise false.

ToXml(XmlDocument)

Serializes the service description to XML.

public XmlElement ToXml(XmlDocument xmlDocument)

Parameters

xmlDocument XmlDocument

The owning XML document.

Returns

XmlElement

The service description as XML.

Exceptions

SamlSerializationException

Thrown when the XML serialization fails.