HttpFileCollectionWrapper.Get 方法

定義

從集合中以名稱或索引回傳已發佈的檔案物件。

多載

名稱 Description
Get(Int32)

回傳指定索引的已發佈檔案物件。

Get(String)

回傳集合中指定名稱的已發佈檔案物件。

Get(Int32)

回傳指定索引的已發佈檔案物件。

public:
 override System::Web::HttpPostedFileBase ^ Get(int index);
public override System.Web.HttpPostedFileBase Get(int index);
override this.Get : int -> System.Web.HttpPostedFileBase
Public Overrides Function Get (index As Integer) As HttpPostedFileBase

參數

index
Int32

要回傳的項目索引。

傳回

index所指定的 posted 檔案物件。

例外狀況

index 超出該集合有效索引範圍。

適用於

Get(String)

回傳集合中指定名稱的已發佈檔案物件。

public:
 override System::Web::HttpPostedFileBase ^ Get(System::String ^ name);
public override System.Web.HttpPostedFileBase Get(string name);
override this.Get : string -> System.Web.HttpPostedFileBase
Public Overrides Function Get (name As String) As HttpPostedFileBase

參數

name
String

要回傳的物體名稱。

傳回

若找到,則由指定 name為 的已發佈檔案物件;否則,則為 null

適用於