Class ValidateRequestAccessEventArgs
Event arguments used to validate if a request should be blocked or allowed.
Inheritance
System.Object
    System.EventArgs
    ValidateRequestAccessEventArgs
  Inherited Members
      System.EventArgs.Empty
    
    
      System.Object.ToString()
    
    
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
  Namespace: EPiServer
Assembly: EPiServer.dll
Version: 7.19.2Syntax
public class ValidateRequestAccessEventArgs : EventArgsConstructors
ValidateRequestAccessEventArgs(HttpRequest)
Initializes a new instance of the ValidateRequestAccessEventArgs class.
Declaration
public ValidateRequestAccessEventArgs(HttpRequest request)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Web.HttpRequest | request | The request to validate | 
Remarks
Check the Cancel property before doing anything. Set it if the request should be cancelled with 'Access Denied'.
Properties
Cancel
Gets or sets a value indicating whether this ValidateRequestAccessEventArgs indicates that the request should be cancelled with an "Access Denied".
Declaration
public bool Cancel { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
 | 
Request
Gets the request. Although this may normally be fetched from HttpContext, it is passed as part of the EventArgs to enable other usage patterns for the event.
Declaration
public HttpRequest Request { get; }Property Value
| Type | Description | 
|---|---|
| System.Web.HttpRequest | The Request object to validate | 
