Table of Contents

Class Advice

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

Represents advice.

public class Advice
Inheritance
Advice
Inherited Members

Remarks

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

Constructors

Advice()

Initializes a new instance of the Advice class.

public Advice()

Advice(XmlElement)

Initializes a new instance of the Advice class from XML.

public Advice(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The advice XML.

Exceptions

SamlSerializationException

Thrown when the XML deserialization fails.

Properties

AdviceList

Gets or sets the list of advice items.

public IList<AdviceListItem> AdviceList { get; set; }

Property Value

IList<AdviceListItem>

The list of advice items.

Methods

IsValid(XmlElement)

Indicates whether the XML is advice.

public static bool IsValid(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The XML to test.

Returns

bool

true if the XML is advice; otherwise false.

ToXml(XmlDocument)

Serializes the advice to XML.

public XmlElement ToXml(XmlDocument xmlDocument)

Parameters

xmlDocument XmlDocument

The owning XML document.

Returns

XmlElement

The advice as XML.

Exceptions

SamlSerializationException

Thrown when the XML serialization fails.