AuthorizationRuleAction Enum

Definitie

Hiermee geeft u het type autorisatie op dat moet worden toegepast bij het openen van een resource.

public enum class AuthorizationRuleAction
public enum AuthorizationRuleAction
type AuthorizationRuleAction = 
Public Enum AuthorizationRuleAction
Overname
AuthorizationRuleAction

Velden

Name Waarde Description
Deny 0

Het autorisatietype weigert de toegang tot de resource.

Allow 1

Het autorisatietype biedt toegang tot de resource.

Voorbeelden

In het volgende codevoorbeeld ziet u hoe u de Action eigenschap gebruikt. Dit codevoorbeeld maakt deel uit van een groter voorbeeld voor de AuthorizationRule klasse.

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

Opmerkingen

Gebruik de Action eigenschap om de autorisatieactie programmatisch te configureren voor gebruik door een webtoepassing.

Van toepassing op

Zie ook