言語

AuthorizationRuleCollection.IndexOf(AuthorizationRule) メソッド

定義

指定した AuthorizationRule オブジェクトのコレクション インデックスを取得します。

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

パラメーター

rule
AuthorizationRule

インデックスが返される AuthorizationRule オブジェクト。

返品

指定した AuthorizationRule オブジェクトのインデックス。

次のコード例は、 IndexOf メソッドの使用方法を示しています。

// Get the rule collection index.
System.Int32 ruleIndex = 
    authorizationSection.Rules.IndexOf(authorizationRule);
' Get the rule collection index.
  Dim ruleIndex As System.Int32 = _
  authorizationSection.Rules.IndexOf(authorizationRule)

適用対象