This documentation is archived and is not being maintained.

HttpFileCollection Members

HttpFileCollection overview

Public Properties

public propertyAllKeys Gets a string array containing the keys (names) of all members in the file collection.
public propertyCount (inherited from NameObjectCollectionBase) Gets the number of key-and-value pairs contained in the NameObjectCollectionBase instance.
public propertyItem Overloaded. Gets an individual HttpPostedFile object from the file collection. This property is overloaded to allow retrieval of objects by either name or numerical index.

In C#, this property is the indexer for the HttpFileCollection class.

public propertyKeys (inherited from NameObjectCollectionBase) Gets a NameObjectCollectionBase.KeysCollection instance that contains all the keys in the NameObjectCollectionBase instance.

Public Methods

public methodCopyTo Copies members of the file collection to an Array beginning at the specified index of the array.
public methodEquals (inherited from Object) Overloaded. Determines whether two Object instances are equal.
public methodGetEnumerator (inherited from NameObjectCollectionBase) Returns an enumerator that can iterate through the NameObjectCollectionBase.
public methodGetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetKey Returns the name of the HttpFileCollection member with the specified numerical index.
public methodGetObjectData (inherited from NameObjectCollectionBase) Implements the ISerializable interface and returns the data needed to serialize the NameObjectCollectionBase instance.
public methodGetType (inherited from Object) Gets the Type of the current instance.
public methodOnDeserialization (inherited from NameObjectCollectionBase) Implements the ISerializable interface and raises the deserialization event when the deserialization is complete.
public methodToString (inherited from Object) Returns a String that represents the current Object.

Protected Properties

protected propertyIsReadOnly (inherited from NameObjectCollectionBase) Gets or sets a value indicating whether the NameObjectCollectionBase instance is read-only.

Protected Methods

protected methodBaseAdd (inherited from NameObjectCollectionBase) Adds an entry with the specified key and value into the NameObjectCollectionBase instance.
protected methodBaseClear (inherited from NameObjectCollectionBase) Removes all entries from the NameObjectCollectionBase instance.
protected methodBaseGet (inherited from NameObjectCollectionBase) Overloaded. Gets the value of the specified entry from the NameObjectCollectionBase instance.
protected methodBaseGetAllKeys (inherited from NameObjectCollectionBase) Returns a String array that contains all the keys in the NameObjectCollectionBase instance.
protected methodBaseGetAllValues (inherited from NameObjectCollectionBase) Overloaded. Returns an array that contains all the values in the NameObjectCollectionBase instance.
protected methodBaseGetKey (inherited from NameObjectCollectionBase) Gets the key of the entry at the specified index of the NameObjectCollectionBase instance.
protected methodBaseHasKeys (inherited from NameObjectCollectionBase) Gets a value indicating whether the NameObjectCollectionBase instance contains entries whose keys are not a null reference (Nothing in Visual Basic).
protected methodBaseRemove (inherited from NameObjectCollectionBase) Removes the entries with the specified key from the NameObjectCollectionBase instance.
protected methodBaseRemoveAt (inherited from NameObjectCollectionBase) Removes the entry at the specified index of the NameObjectCollectionBase instance.
protected methodBaseSet (inherited from NameObjectCollectionBase) Overloaded. Sets the value of an entry in the NameObjectCollectionBase instance.
protected methodFinalize (inherited from Object) Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

HttpFileCollection Class | System.Web Namespace

Show: