RequestSecurityToken.ActAs Property

.NET Framework (current version)

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

Gets or sets the security token for the identity that the requestor is attempting to act as.

Namespace:   System.IdentityModel.Protocols.WSTrust
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public SecurityTokenElement ActAs { get; set; }

Property Value

Type: System.IdentityModel.Tokens.SecurityTokenElement

A SecurityTokenElement that represents the identity the requestor is attempting to act as. Can be null.

Represents the contents of the wst:ActAs element. This optional element supports delegation scenarios and indicates that the requestor is making the request to act as another identity. This element is introduced in WS-Trust 1.4. This property is null in requests that don’t involve delegation.

.NET Framework
Available since 4.5
Return to top