aspxtreme

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



Books and more ...


Suggested Reading

Need a break ?



Previous page Back to top Next page

Check out related books at Amazon

© 2000-2008 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 aspxtreme