WebBaseEventCollection.Item[Int32] プロパティ

定義

指定したインデックス位置にある WebBaseEvent オブジェクトを取得します。

public:
 property System::Web::Management::WebBaseEvent ^ default[int] { System::Web::Management::WebBaseEvent ^ get(int index); };
public System.Web.Management.WebBaseEvent this[int index] { get; }
member this.Item(int) : System.Web.Management.WebBaseEvent
Default Public ReadOnly Property Item(index As Integer) As WebBaseEvent

パラメーター

index
Int32

取得する WebBaseEvent オブジェクトのコレクション インデックス。

プロパティ値

WebBaseEvent

指定したインデックス位置にある WebBaseEvent オブジェクト。

例外

指定したインデックスはコレクションの範囲外にあります。

次のコード例は、Item[] プロパティの使用方法を示しています。

// Get the event with the specified index.
public static WebBaseEvent GetItem(int index)
{
    return events[index];
}
' Get the event with the specified index.
Public Shared Function GetItem(ByVal index _
As Integer) As WebBaseEvent
    Return events(index)

End Function 'GetItem

適用対象

こちらもご覧ください