Επεξεργασία

Κοινή χρήση μέσω


HttpFileCollectionBase.Item[] Property

Definition

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

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

Applies to