HttpFileCollectionBase.Get 方法

定義

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

多載

Get(Int32)

在衍生類別中覆寫時,傳回指定索引處的張貼檔案物件。

Get(String)

在衍生類別中遭覆寫時,傳回集合中具有所指定名稱的張貼檔案物件。

Get(Int32)

在衍生類別中覆寫時,傳回指定索引處的張貼檔案物件。

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

參數

index
Int32

要傳回的物件索引。

傳回

HttpPostedFileBase

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

例外狀況

適用於

Get(String)

在衍生類別中遭覆寫時,傳回集合中具有所指定名稱的張貼檔案物件。

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

參數

name
String

要傳回之物件的名稱。

傳回

HttpPostedFileBase

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

例外狀況

適用於