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
xmlElementXmlElementThe 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
xmlElementXmlElementThe XML to test.
Returns
- bool
trueif the XML is advice; otherwisefalse.
ToXml(XmlDocument)
Serializes the advice to XML.
public XmlElement ToXml(XmlDocument xmlDocument)
Parameters
xmlDocumentXmlDocumentThe owning XML document.
Returns
- XmlElement
The advice as XML.
Exceptions
- SamlSerializationException
Thrown when the XML serialization fails.