Class AttributeProfile
- Namespace
- ComponentSpace.Saml2.Metadata
- Assembly
- ComponentSpace.Saml2.dll
Represents an attribute profile.
public class AttributeProfile
- Inheritance
-
AttributeProfile
- Inherited Members
Remarks
Refer to the Metadata for the OASIS Security Assertion Markup Language (SAML) V2.0 specification for further details.
Constructors
AttributeProfile()
Initializes a new instance of the AttributeProfile class.
public AttributeProfile()
AttributeProfile(XmlElement)
Initializes a new instance of the AttributeProfile class from XML.
public AttributeProfile(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe attribute profile XML.
Exceptions
- SamlSerializationException
Thrown when the XML deserialization fails.
Properties
Profile
Gets or sets the attribute profile URI.
public string Profile { get; set; }
Property Value
- string
The attribute profile URI.
Methods
IsValid(XmlElement)
Indicates whether the XML is an attribute profile.
public static bool IsValid(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe XML to test.
Returns
- bool
trueif the XML is an attribute profile; otherwisefalse.
ToXml(XmlDocument)
Serializes the attribute profile to XML.
public XmlElement ToXml(XmlDocument xmlDocument)
Parameters
xmlDocumentXmlDocumentThe owning XML document.
Returns
- XmlElement
The attribute profile as XML.
Exceptions
- SamlSerializationException
Thrown when the XML serialization fails.