asp.net.ph

AuthorizationRuleAction Enumeration

System.Web.Configuration Namespace


.NET Framework version 2.0

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

Members


Member Description
Allow The authorization type allows access to the resource.
Deny The authorization type denies access to the resource.

Remarks

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

Example

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 AuthorizationRule ( action );
  C# VB

See Also

<authorization> Section   AuthorizationSection Class   ASP.NET Authorization Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph