Table of Contents

Class ServiceName

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

Represents the service name.

public class ServiceName : LocalizedNameType
Inheritance
ServiceName
Inherited Members

Remarks

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

Constructors

ServiceName()

Initializes a new instance of the ServiceName class.

public ServiceName()

ServiceName(XmlElement)

Initializes a new instance of the ServiceName class from XML.

public ServiceName(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The service name XML.

Exceptions

SamlSerializationException

Thrown when the XML deserialization fails.

Methods

IsValid(XmlElement)

Indicates whether the XML is a service name.

public static bool IsValid(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The XML to test.

Returns

bool

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

ToXml(XmlDocument)

Serializes the service name to XML.

public XmlElement ToXml(XmlDocument xmlDocument)

Parameters

xmlDocument XmlDocument

The owning XML document.

Returns

XmlElement

The service name as XML.

Exceptions

SamlSerializationException

Thrown when the XML serialization fails.