AuthenticationContext Class

 

Represents an authentication context containing information for performing authentication.

Namespace:   System.Web.Mvc.Filters
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Inheritance Hierarchy

System.Object
  System.Web.Mvc.ControllerContext
    System.Web.Mvc.Filters.AuthenticationContext

Syntax

public class AuthenticationContext : ControllerContext
public ref class AuthenticationContext : ControllerContext
type AuthenticationContext = 
    class
        inherit ControllerContext
    end
Public Class AuthenticationContext
    Inherits ControllerContext

Constructors

Name Description
System_CAPS_pubmethod AuthenticationContext()

Initializes a new instance of the AuthenticationContext class.

System_CAPS_pubmethod AuthenticationContext(ControllerContext, ActionDescriptor, IPrincipal)

Properties

Name Description
System_CAPS_pubproperty ActionDescriptor

Gets or sets the action descriptor.

System_CAPS_pubproperty Controller

Gets or sets the controller.(Inherited from ControllerContext.)

System_CAPS_pubproperty DisplayMode

Gets the display mode.(Inherited from ControllerContext.)

System_CAPS_pubproperty HttpContext

Gets or sets the HTTP context.(Inherited from ControllerContext.)

System_CAPS_pubproperty IsChildAction

Gets a value that indicates whether the associated action method is a child action.(Inherited from ControllerContext.)

System_CAPS_pubproperty ParentActionViewContext

Gets an object that contains the view context information for the parent action method.(Inherited from ControllerContext.)

System_CAPS_pubproperty Principal

Gets or sets the currently authenticated principal.

System_CAPS_pubproperty RequestContext

Gets or sets the request context.(Inherited from ControllerContext.)

System_CAPS_pubproperty Result

Gets or sets the error result, which indicates that authentication was attempted and failed.

System_CAPS_pubproperty RouteData

Gets or sets the URL route data.(Inherited from ControllerContext.)

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Thread Safety

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

See Also

System.Web.Mvc.Filters Namespace

Return to top