AuthorizationRuleCollection.Get(Int32) Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
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)