AuthorizationRuleCollection.Get(Int32) 方法

定义

获取位于指定索引处的 AuthorizationRule

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

参数

index
Int32

AuthorizationRule 索引。

返回

指定索引处的 AuthorizationRule

示例

下面的代码示例说明如何使用 Get 方法。 请参阅类主题中的 AuthorizationSection 代码示例,了解如何获取集合。

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

适用于