SamlAttribute Class
Represents an attribute that is associated with the subject of a SamlAttributeStatement.
Assembly: System.IdentityModel (in System.IdentityModel.dll)
The SamlAttribute type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | SamlAttribute() | Initializes a new instance of the SamlAttribute class. |
![]() | SamlAttribute(Claim) | Initializes a new instance of the SamlAttribute class using the specified claim. |
![]() | SamlAttribute(String, String, IEnumerable<String>) | Initializes a new instance of the SamlAttribute class using the specified attribute name, XML namespace, and attribute values. |
| Name | Description | |
|---|---|---|
![]() | AttributeValues | Gets a collection of attribute values for the SAML attribute. |
![]() | IsReadOnly | Gets a value that indicates whether the properties of this instance are read-only. |
![]() | Name | Gets or sets the name of the SAML attribute. |
![]() | Namespace | Gets or sets the XML namespace in which the name of the SAML attribute is defined. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | ExtractClaims | Gets a collection of claims that this SAML attribute represents. |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MakeReadOnly | Causes this instance to be read-only. |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ReadXml | Reads the SAML attribute from the specified XML reader. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | WriteXml | Writes the SAML attribute into the specified XML serializer. |
The SamlAttribute class corresponds to the <saml:Attribute> XML element that is defined in the OASIS SAML 1.1 specification.
A SamlAttribute instance contains PossessProperty claims for the subject of a SamlAttributeStatement. For example, a SamlAttribute might contain an Over21 claim, whose type would be specified in the Namespace property and whose resource would be specified as a member of the collection in the AttributeValues property. When the CreatePolicy method is called, this Over21 claim is added to the authorization policy that is returned by returned from by the SamlAttributeStatement. When the AttributeValues property contains multiple elements then one claim is returned for each element.
SamlAttribute position in the SAML object hierarchy is:
SamlAttribute
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
