Table of Contents

Class AttributeValue

Namespace
ComponentSpace.Saml2.Assertions
Assembly
ComponentSpace.Saml2.dll

Represents a SAML attribute value.

public class AttributeValue
Inheritance
AttributeValue
Inherited Members

Remarks

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

Constructors

AttributeValue()

Initializes a new instance of the AttributeValue class.

public AttributeValue()

AttributeValue(IEnumerable<XmlNode>)

Initializes a new instance of the AttributeValue class.

public AttributeValue(IEnumerable<XmlNode> data)

Parameters

data IEnumerable<XmlNode>

The attribute value data.

AttributeValue(IEnumerable<XmlNode>, string)

Initializes a new instance of the AttributeValue class.

public AttributeValue(IEnumerable<XmlNode> data, string type)

Parameters

data IEnumerable<XmlNode>

The attribute value data.

type string

The attribute value type.

AttributeValue(IEnumerable<XmlNode>, string, IDictionary<string, string>)

Initializes a new instance of the AttributeValue class.

public AttributeValue(IEnumerable<XmlNode> data, string type, IDictionary<string, string> xmlAttributes)

Parameters

data IEnumerable<XmlNode>

The attribute value data.

type string

The attribute value type.

xmlAttributes IDictionary<string, string>

The associated XML attributes keyed by named and containing the XML attribute values.

AttributeValue(string)

Initializes a new instance of the AttributeValue class.

public AttributeValue(string data)

Parameters

data string

The attribute value data.

AttributeValue(string, string)

Initializes a new instance of the AttributeValue class.

public AttributeValue(string data, string type)

Parameters

data string

The attribute value data.

type string

The attribute value type.

AttributeValue(string, string, IDictionary<string, string>)

Initializes a new instance of the AttributeValue class.

public AttributeValue(string data, string type, IDictionary<string, string> xmlAttributes)

Parameters

data string

The attribute value data.

type string

The attribute value type.

xmlAttributes IDictionary<string, string>

The associated XML attributes keyed by named and containing the XML attribute values.

AttributeValue(XmlElement)

Initializes a new instance of the AttributeValue class from XML.

public AttributeValue(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The attribute value XML.

Exceptions

SamlSerializationException

Thrown when the XML deserialization fails.

Properties

Data

Gets or sets the attribute value data.

public IEnumerable<XmlNode> Data { get; set; }

Property Value

IEnumerable<XmlNode>

The attribute value data.

Type

Gets or sets the attribute value type.

public string Type { get; set; }

Property Value

string

The attribute value type.

See Also
XmlSchema.SimpleTypes

XmlAttributes

Gets or sets the associated XML attributes keyed by named and containing the XML attribute values.

public IDictionary<string, string> XmlAttributes { get; set; }

Property Value

IDictionary<string, string>

The associated XML attributes keyed by named and containing the XML attribute values.

Methods

IsValid(XmlElement)

Indicates whether the XML is an attribute value.

public static bool IsValid(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The XML to test.

Returns

bool

true if the XML is an attribute value; otherwise false.

ToString()

Returns the attribute value data as a string.

public override string ToString()

Returns

string

The attribute value data as a string.

ToXml(XmlDocument)

Serializes the attribute value to XML.

public XmlElement ToXml(XmlDocument xmlDocument)

Parameters

xmlDocument XmlDocument

The owning XML document.

Returns

XmlElement

The attribute value as XML.

Exceptions

SamlSerializationException

Thrown when the XML serialization fails.