Skip to main content
Version: 4.1

HttpFileCollection

Namespace: Wisej.Core

Assembly: Wisej.Framework (4.1.0.0)

Provides access to and organizes files uploaded by a client.

public class HttpFileCollection

Properties

Instance member AllKeys

String[]: Returns a string array containing the keys (names) of all members in the file collection.

Instance member Count

Int32: Returns the number of files in the collection.

Instance member Item(index)

HttpPostedFile: Returns the HttpPostedFile at the index.

Instance member Item(name)

HttpPostedFile: Returns the HttpPostedFile identified by the specified name .

Methods

Instance member Get(index)

Returns the HttpPostedFile at the specified index.

ParameterTypeDescription
indexInt32Index of the file to retrieve.

Returns: HttpPostedFile.

Instance member Get(name)

Returns the HttpPostedFile with the specified name.

ParameterTypeDescription
nameStringThe name of the object to be returned from a file collection.

Returns: HttpPostedFile.

Instance member GetKey(index)

Returns the name of the file at the specified index .

ParameterTypeDescription
indexInt32Index of the file in the collection.

Returns: String.

Instance member GetMultiple(name)

Returns all files that match the specified name.

ParameterTypeDescription
nameStringThe name to match.

Returns: IList<HttpPostedFile>. Returns all files that match the specified name.