Table of Contents

Class AttributeType

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

Represents the attribute type.

public abstract class AttributeType
Inheritance
AttributeType
Derived
Inherited Members

Remarks

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

Constructors

AttributeType()

Initializes a new instance of the AttributeType class.

public AttributeType()

AttributeType(string, string)

Initializes a new instance of the AttributeType class.

public AttributeType(string name, string value)

Parameters

name string

The attribute name.

value string

The attribute value.

See Also

AttributeType(string, string, string, string)

Initializes a new instance of the AttributeType class.

public AttributeType(string name, string nameFormat, string friendlyName, string value)

Parameters

name string

The attribute name.

nameFormat string

The name format or null if none.

friendlyName string

The friendly name or null if none.

value string

The attribute value.

See Also

AttributeType(XmlElement)

Initializes a new instance of the AttributeType class from XML.

public AttributeType(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The attribute type XML.

Exceptions

SamlSerializationException

Thrown when the XML deserialization fails.

Properties

AttributeValues

Gets or sets the attribute values.

public IList<AttributeValue> AttributeValues { get; set; }

Property Value

IList<AttributeValue>

The attribute values.

See Also

FriendlyName

Gets or sets the attribute's friendly name.

public string FriendlyName { get; set; }

Property Value

string

The attribute's friendly name.

Name

Gets or sets the attribute's name.

public string Name { get; set; }

Property Value

string

The attribute's name.

NameFormat

Gets or sets the attribute's name format.

public string NameFormat { get; set; }

Property Value

string

The attribute's name format.

See Also

Methods

ToString()

Returns the attribute value data as a string.

public override string ToString()

Returns

string

The attribute value data as a string.

ToString(string)

Returns the attribute value data as a string.

public string ToString(string separator)

Parameters

separator string

The separator to use between attribute values.

Returns

string

The attribute value data as a string.

ToXml(XmlElement)

Serializes the attribute type to XML.

public void ToXml(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The owning XML element.

Exceptions

SamlSerializationException

Thrown when the XML serialization fails.