HttpFileCollectionBase.Get 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當在衍生類別中覆寫時,會從集合中以名稱或索引回傳已發佈的檔案物件。
多載
| 名稱 | Description |
|---|---|
| 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
要回傳物件的索引。
傳回
由 index所指定的 posted 檔案物件。
例外狀況
適用於
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
要回傳的物體名稱。
傳回
由 所指定的 nameposted file 物件。