HttpFileCollectionBase.Item[] Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When overridden in a derived class, gets a posted file object from the file collection by either name or index.
Overloads
Item[Int32] |
When overridden in a derived class, gets the posted file object at the specified index. |
Item[String] |
When overridden in a derived class, gets the posted file object that has the specified name from the collection. |
Item[Int32]
When overridden in a derived class, gets the posted file object at the specified index.
public:
virtual property System::Web::HttpPostedFileBase ^ default[int] { System::Web::HttpPostedFileBase ^ get(int index); };
public virtual System.Web.HttpPostedFileBase this[int index] { get; }
member this.Item(int) : System.Web.HttpPostedFileBase
Default Public Overridable ReadOnly Property Item(index As Integer) As HttpPostedFileBase
Parameters
- index
- Int32
The index of the object to get.
Property Value
The posted file object specified by index
.
Exceptions
Always.
Applies to
Item[String]
When overridden in a derived class, gets the posted file object that has the specified name from the collection.
public:
virtual property System::Web::HttpPostedFileBase ^ default[System::String ^] { System::Web::HttpPostedFileBase ^ get(System::String ^ name); };
public virtual System.Web.HttpPostedFileBase this[string name] { get; }
member this.Item(string) : System.Web.HttpPostedFileBase
Default Public Overridable ReadOnly Property Item(name As String) As HttpPostedFileBase
Parameters
- name
- String
The name of the object to return.
Property Value
The posted file object that is specified by name
.
Exceptions
Always.