Saml2Action Class

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Represents a <saml:Action> element defined by SAML 2.0.

Namespace:   System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)


Public Class Saml2Action

System_CAPS_pubmethodSaml2Action(String, Uri)

Initializes a new instance of the Saml2Action class with the specified namespace and action.


Gets or sets the URI reference that represents the XML namespace in which the name of the specified action is to be interpreted.


Gets or sets the action that the subject of the Saml2AuthorizationDecisionStatement can perform on the resource.


Determines whether the specified object is equal to the current object.(Inherited from Object.)


Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)


Serves as the default hash function. (Inherited from Object.)


Gets the Type of the current instance.(Inherited from Object.)


Creates a shallow copy of the current Object.(Inherited from Object.)


Returns a string that represents the current object.(Inherited from Object.)

The Saml2Action class specifies an action on a resource for which authorization is either requested, granted, or denied in a Saml2AuthorizationDecisionStatement.

The Saml2AuthorizationDecisionStatement represents a claim about the ability of the subject of a SAML 2 assertion to perform a specified set of actions on a specified resource. A Saml2Action can be added to the Saml2AuthorizationDecisionStatement.Actions property to specify the desired action. The Value property represents the action and the Namespace property specifies the XML namespace in which the action is defined. The Saml2AuthorizationDecisionStatement.Resource property specifies the resource on which the access decision applies, and the Decision property specifies the access decision.

For more information about the element that this class represents, see the following specification: Assertions and Protocols for the OASIS Security Assertion Markup Language (SAML) V2.0 (

.NET Framework
Available since 4.5

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top