AuthorizationRuleCollection.Set(Int32, AuthorizationRule) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定した AuthorizationRule オブジェクトを、指定したインデックス位置にあるコレクションに追加します。
public:
void Set(int index, System::Web::Configuration::AuthorizationRule ^ rule);
public void Set(int index, System.Web.Configuration.AuthorizationRule rule);
member this.Set : int * System.Web.Configuration.AuthorizationRule -> unit
Public Sub Set (index As Integer, rule As AuthorizationRule)
パラメーター
- index
- Int32
指定した AuthorizationRuleCollection オブジェクトを追加するインデックスの場所。
- rule
- AuthorizationRule
追加する AuthorizationRule オブジェクト。
例
次のコード例は、 Set メソッドの使用方法を示しています。
// Using the AuthorizationRuleCollection Set method.
// Define the rule to add to the collection.
// Define the collection index.
System.Int32 rIndex = 0;
// Set the rule in the collection.
authorizationRuleCollection.Set(rIndex,
authorizationRule);
' Using the AuthorizationRuleCollection Set method.
' Define the rule to add to the collection.
' Define the collection index.
Dim rIndex As System.Int32 = 0
' Set the rule in the collection.
authorizationRuleCollection.Set(rIndex, _
authorizationRule)