HttpFileCollectionWrapper.Get 方法

定義

依名稱或索引,傳回集合中已張貼的檔案物件。

多載

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

例外狀況

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

適用於