Gets the UploadedFile object with the specified numerical index from the UploadedFileCollection.

Namespace:  EasyAlgo.EAUpload
Assembly:  EasyAlgo.EAUpload (in EasyAlgo.EAUpload.dll)
Version: 1.3.2.0

Syntax

C#
public UploadedFile this[
	int index
] { get; }
Visual Basic (Declaration)
Public ReadOnly Default Property Item ( _
	index As Integer _
) As UploadedFile

Parameters

index
Type: System..::.Int32
The index of the UploadedFile object to be returned from the files collection.

Field Value

Type: EasyAlgo.EAUpload..::.UploadedFile
The UploadedFile object.

Examples

The following code example demonstrates how to assign the name of an uploaded file (the first file in the files collection) to a string variable.
CopyC#
Upload _CurrentUpload = UploadsManager.GetUpload();
UploadedFileCollection _UploadedFiles = _CurrentUpload.UploadedFiles;
UploadedFile _File = _UploadedFiles[0];

string _FileName = _File.ClientFileName;
CopyVB.NET
Dim _CurrentUpload As Upload = UploadsManager.GetUpload
Dim _UploadedFiles As UploadedFileCollection = _CurrentUpload.UploadedFiles
Dim _File As UploadedFile = _UploadedFiles(0)

Dim _FileName As String = _File.ClientFileName

Exceptions

ExceptionCondition
System..::.ArgumentOutOfRangeException index is outside the valid range of indexes for the collection.

See Also