HttpFileCollectionWrapper.Item[] プロパティ

定義

名前またはインデックスを使用して、ファイル コレクションからポストされたファイル オブジェクトを取得します。

オーバーロード

名前 説明
Item[Int32]

指定したインデックス位置にあるポストされたファイル オブジェクトを取得します。

Item[String]

指定した名前を持つポストされたファイル オブジェクトをコレクションから取得します。

Item[Int32]

指定したインデックス位置にあるポストされたファイル オブジェクトを取得します。

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

パラメーター

index
Int32

取得する項目のインデックス。

プロパティ値

indexで指定されたポストされたファイル オブジェクト。

例外

index がコレクションの有効なインデックスの範囲外です。

適用対象

Item[String]

指定した名前を持つポストされたファイル オブジェクトをコレクションから取得します。

public:
 virtual property System::Web::HttpPostedFileBase ^ default[System::String ^] { System::Web::HttpPostedFileBase ^ get(System::String ^ name); };
public override System.Web.HttpPostedFileBase this[string name] { get; }
member this.Item(string) : System.Web.HttpPostedFileBase
Default Public Overrides ReadOnly Property Item(name As String) As HttpPostedFileBase

パラメーター

name
String

取得するオブジェクトの名前。

プロパティ値

見つかった場合は nameで指定されたポストされたファイル オブジェクト。それ以外の場合は null

適用対象