Export (0) Print
Expand All
Expand Minimize

AuthorizationRuleAction Enumeration

Specifies the type of authorization to apply when accessing a resource.

Namespace: System.Web.Configuration
Assembly: System.Web (in system.web.dll)

public enum AuthorizationRuleAction
public enum AuthorizationRuleAction
public enum AuthorizationRuleAction

 Member nameDescription
AllowThe authorization type allows access to the resource. 
DenyThe authorization type denies access to the resource. 

Use the Action property to programmatically configure the authorization action to be used by a Web application.

The following code example shows how use the Action property. This code example is part of a larger example provided for the AuthorizationRule class.

// Create an authorization rule object.
AuthorizationRuleAction action =
    AuthorizationRuleAction.Deny;
AuthorizationRule authorizationRule = 
    new System.Web.Configuration.AuthorizationRule(action);

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft