HttpFileCollectionBase.Get Method
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, 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
Always.
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
Always.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈