編輯

共用方式為


HttpFileCollectionBase.Get Method

Definition

When overridden in a derived class, returns a posted file object from the collection by either name or index.

Overloads

Get(Int32)

When overridden in a derived class, returns the posted file object at the specified index.

Get(String)

When overridden in a derived class, returns the posted file object that has the specified name from the collection.

Get(Int32)

When overridden in a derived class, returns the posted file object at the specified index.

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

Parameters

index
Int32

The index of the object to return.

Returns

The posted file object specified by index.

Exceptions

Applies to

Get(String)

When overridden in a derived class, returns the posted file object that has the specified name from the collection.

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

Parameters

name
String

The name of the object to return.

Returns

The posted file object that is specified by name.

Exceptions

Applies to