HttpFileCollectionBase.Item[] 屬性

定義

當在派生類別中被覆寫時,會從檔案集合中以名稱或索引取得已發佈的檔案物件。

多載

名稱 Description
Item[Int32]

當在派生類別中覆寫時,會取得指定索引的已發佈檔案物件。

Item[String]

當在衍生類別中覆寫時,會取得集合中指定名稱的發佈檔案物件。

Item[Int32]

當在派生類別中覆寫時,會取得指定索引的已發佈檔案物件。

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

參數

index
Int32

要取得的物件的索引。

屬性值

index所指定的 posted 檔案物件。

例外狀況

適用於

Item[String]

當在衍生類別中覆寫時,會取得集合中指定名稱的發佈檔案物件。

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

參數

name
String

要回傳的物體名稱。

屬性值

由 所指定的 nameposted file 物件。

例外狀況

適用於