SamlAuthorizationDecisionStatement Constructor (SamlSubject, String, SamlAccessDecision, IEnumerable<SamlAction>)


Initializes a new instance of the SamlAuthorizationDecisionStatement class. using the specified subject, resource, authorization decision, and the actions sought by the subject on the resource.

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

public SamlAuthorizationDecisionStatement(
	SamlSubject samlSubject,
	string resource,
	SamlAccessDecision accessDecision,
	IEnumerable<SamlAction> samlActions


Type: System.IdentityModel.Tokens.SamlSubject

A SamlSubject that represents the subject of the claim. Sets the SamlSubject property.

Type: System.String

A URI reference that identifies the resource to which access is sought. Sets the Resource property.

Type: System.IdentityModel.Tokens.SamlAccessDecision

A SamlAccessDecision that specifies the authorization decision rendered by the SAML authority with respect to access by the subject to the specified resource. Sets the AccessDecision property.

Type: System.Collections.Generic.IEnumerable<SamlAction>

An IEnumerable<T> of type SamlAction that specifies the set of actions that the subject is authorized to perform on the resource. Sets the SamlActions property.

Exception Condition

samlActions is null.


samlActions contains a member that is null.


samlSubject is null.


authorityBindings contains a member that is null.


resource is null or empty.

This constructor initializes the IsReadOnly property to false, the ClaimType property to, and the Evidence property to null.

.NET Framework
Available since 3.0
Return to top