HttpFileCollectionWrapper.Item[] 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從檔案集合中以名稱或索引取得已發佈的檔案物件。
多載
| 名稱 | Description |
|---|---|
| Item[Int32] |
取得指定索引的已發佈檔案物件。 |
| Item[String] |
從集合中取得帶有指定名稱的已發佈檔案物件。 |
Item[Int32]
取得指定索引的已發佈檔案物件。
public:
virtual property System::Web::HttpPostedFileBase ^ default[int] { System::Web::HttpPostedFileBase ^ get(int index); };
public override System.Web.HttpPostedFileBase this[int index] { get; }
member this.Item(int) : System.Web.HttpPostedFileBase
Default Public Overrides ReadOnly Property Item(index As Integer) As HttpPostedFileBase
參數
- index
- Int32
要取得的物品索引。
屬性值
由 index所指定的 posted 檔案物件。
例外狀況
index 超出該集合有效索引範圍。
適用於
Item[String]
從集合中取得帶有指定名稱的已發佈檔案物件。
public:
virtual property System::Web::HttpPostedFileBase ^ default[System::String ^] { System::Web::HttpPostedFileBase ^ get(System::String ^ name); };
public override System.Web.HttpPostedFileBase this[string name] { get; }
member this.Item(string) : System.Web.HttpPostedFileBase
Default Public Overrides ReadOnly Property Item(name As String) As HttpPostedFileBase
參數
- name
- String
要取得的物品名稱。
屬性值
若找到,則由指定 name為 的已發佈檔案物件;否則,則為 null。