HttpFileCollectionBase.Item[] 屬性

定義

在衍生的類別中覆寫時,依名稱或索引取得檔案集合中張貼的檔案物件。

多載

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 所指定的張貼檔案物件。

例外狀況

適用於

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

要傳回之物件的名稱。

屬性值

name 所指定的張貼檔案物件。

例外狀況

適用於