AuthorizationRuleCollection.Get(Int32) Metod

Definition

AuthorizationRule Hämtar vid det angivna indexet.

public:
 System::Web::Configuration::AuthorizationRule ^ Get(int index);
public System.Web.Configuration.AuthorizationRule Get(int index);
member this.Get : int -> System.Web.Configuration.AuthorizationRule
Public Function Get (index As Integer) As AuthorizationRule

Parametrar

index
Int32

Indexet AuthorizationRule .

Returer

Vid AuthorizationRule det angivna indexet.

Exempel

I följande kodexempel visas hur metoden Get används. Se kodexemplet i klassavsnittet AuthorizationSection för att lära dig hur du hämtar samlingen.

// Using the AuthorizationRuleCollection Get method.
AuthorizationRule authRule = 
    authorizationRuleCollection.Get(0);
' Using the AuthorizationRuleCollection Get method.
  Dim authRule As AuthorizationRule = _
  authorizationRuleCollection.Get(0)

Gäller för