RouteCollection.InsertItem(Int32, RouteBase) メソッド

定義

指定したルートを、指定したインデックス位置にある RouteCollection オブジェクトに挿入します。

protected:
 override void InsertItem(int index, System::Web::Routing::RouteBase ^ item);
protected override void InsertItem(int index, System.Web.Routing.RouteBase item);
override this.InsertItem : int * System.Web.Routing.RouteBase -> unit
Protected Overrides Sub InsertItem (index As Integer, item As RouteBase)

パラメーター

index
Int32

itemが挿入される 0 から始まるインデックス。

item
RouteBase

挿入するルート。

例外

itemnullです。

item は既にコレクション内にあります。

注釈

RouteCollection オブジェクトに名前のないルートを追加する場合、既にコレクション内にあるルートを追加することはできません。

GetReadLock メソッドと GetWriteLock メソッドを使用して、他のプロセスとの競合なしにコレクションを操作できるようにします。

適用対象

こちらもご覧ください