Table of Contents

Class StatusCode

Namespace
ComponentSpace.Saml2.Protocols
Assembly
ComponentSpace.Saml2.dll

Represents a status code.

public class StatusCode
Inheritance
StatusCode
Inherited Members

Remarks

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

Constructors

StatusCode()

Initializes a new instance of the StatusCode class.

public StatusCode()

StatusCode(string)

Initializes a new instance of the StatusCode class.

public StatusCode(string code)

Parameters

code string

The status code.

See Also

StatusCode(XmlElement)

Initializes a new instance of the StatusCode class from XML.

public StatusCode(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The status code XML.

Exceptions

SamlSerializationException

Thrown when the XML deserialization fails.

Properties

Code

Gets or sets the status code.

public string Code { get; set; }

Property Value

string

The status code.

See Also

SubordinateStatusCode

Gets or sets the subordinate status code.

public StatusCode SubordinateStatusCode { get; set; }

Property Value

StatusCode

The subordinate status code.

Methods

IsValid(XmlElement)

Indicates whether the XML is a status code.

public static bool IsValid(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The XML to test.

Returns

bool

true if the XML is status code; otherwise false.

ToString()

Returns the status code.

public override string ToString()

Returns

string

The status code.

ToXml(XmlDocument)

Serializes the status code to XML.

public XmlElement ToXml(XmlDocument xmlDocument)

Parameters

xmlDocument XmlDocument

The owning XML document.

Returns

XmlElement

The status code as XML.

Exceptions

SamlSerializationException

Thrown when the XML serialization fails.