Class Extensions
- Namespace
- ComponentSpace.Saml2.Protocols
- Assembly
- ComponentSpace.Saml2.dll
Represents extensions.
public class Extensions
- Inheritance
-
Extensions
- Inherited Members
Remarks
Refer to the Assertions and Protocol for the OASIS Security Assertion Markup Language (SAML) V2.0 specification for further details.
Constructors
Extensions()
Initializes a new instance of the Extensions class.
public Extensions()
Extensions(IEnumerable<XmlElement>)
Initializes a new instance of the Extensions class.
public Extensions(IEnumerable<XmlElement> items)
Parameters
itemsIEnumerable<XmlElement>The extension items.
Extensions(XmlElement)
Initializes a new instance of the Extensions class from XML.
public Extensions(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe extensions element XML.
Exceptions
- SamlSerializationException
Thrown when the XML deserialization fails.
Properties
Items
Gets or sets the extension items.
public IEnumerable<XmlElement> Items { get; set; }
Property Value
- IEnumerable<XmlElement>
The extension items.
Methods
IsValid(XmlElement)
Indicates whether the XML is an extensions.
public static bool IsValid(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe XML to test.
Returns
- bool
trueif the XML is an extensions; otherwisefalse.
ToXml(XmlDocument)
Serializes the extensions to XML.
public XmlElement ToXml(XmlDocument xmlDocument)
Parameters
xmlDocumentXmlDocumentThe owning XML document.
Returns
- XmlElement
The extensions as XML.
Exceptions
- SamlSerializationException
Thrown when the XML serialization fails.