Table of Contents

Class RequestedAttribute

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

Represents a requested attribute.

public class RequestedAttribute : AttributeType
Inheritance
RequestedAttribute
Inherited Members

Remarks

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

Constructors

RequestedAttribute()

Initializes a new instance of the RequestedAttribute class.

public RequestedAttribute()

RequestedAttribute(XmlElement)

Initializes a new instance of the RequestedAttribute class from XML.

public RequestedAttribute(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The requested attribute XML.

Exceptions

SamlSerializationException

Thrown when the XML deserialization fails.

Properties

IsRequired

Gets or sets the is required flag.

public bool? IsRequired { get; set; }

Property Value

bool?

The is required flag.

Methods

IsValid(XmlElement)

Indicates whether the XML is a requested attribute.

public static bool IsValid(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The XML to test.

Returns

bool

true if the XML is an attribute consuming service; otherwise false.

ToXml(XmlDocument)

Serializes the requested attribute to XML.

public XmlElement ToXml(XmlDocument xmlDocument)

Parameters

xmlDocument XmlDocument

The owning XML document.

Returns

XmlElement

The requested attribute as XML.

Exceptions

SamlSerializationException

Thrown when the XML serialization fails.