Sdílet prostřednictvím


AuthorizationRuleCollection.Get(Int32) Metoda

Definice

Získá v zadaném AuthorizationRule indexu.

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

Parametry

index
Int32

Index AuthorizationRule .

Návraty

AuthorizationRule

V AuthorizationRule zadaném indexu.

Příklady

Následující příklad kódu ukazuje, jak použít metodu Get . V příkladu kódu v tématu předmětu AuthorizationSection se dozvíte, jak získat kolekci.

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

Platí pro