UploadedFileCollectionItem Property (Int32) |
Gets an individual UploadedFile object from the file
collection.
In C#, this property is the indexer for the
UploadedFileCollection class.
Namespace: Kettic.AspNet.ControlsAssembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax public UploadedFile this[
int index
] { get; }
Public ReadOnly Default Property Item (
index As Integer
) As UploadedFile
Get
public:
property UploadedFile^ default[int index] {
UploadedFile^ get (int index);
}
member Item : UploadedFile with get
Parameters
- index
- Type: SystemInt32
The index of the item to get from the file collection.
Property Value
Type:
UploadedFileThe
UploadedFile specified by
index.Examples
The following example retrieves the first file object (index = 0) from the
collection sent by the client and retrieves the name of the actual file represented
by the object.
HttpPostedFile MyUploadedFile = KaxUpload1.UploadedFiles[0];
String MyFileName = MyUploadedFile.FileName;
Dim MyUploadedFile As UploadedFile = KaxUpload1.UploadedFiles(0)
Dim MyFileName As String = UploadedFile.FileName
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also