www.gibmonks.com

Main Page

  Previous Section Next Section

HttpFileCollection

System.Web (system.web.dll)sealed class

This class is a name/value collection of HttpPostedFile instances, which represents incoming files uploaded by a client (using multipart MIME and the HTTP content type of multipart/formdata). The HtmlInputFile class in the System.Web.UI.HtmlControls namespace provides an easier way to allow a user to upload files.

public sealed class HttpFileCollection : System.Collections.Specialized.NameObjectCollectionBase {
// Public Instance Properties
   public string[ ] AllKeys{get; }
   public HttpPostedFile this[int index]{get; }
   public HttpPostedFile this[string name]{get; }
// Public Instance Methods
   public void CopyTo(Array dest, int index);                   // implements ICollection
   public HttpPostedFile Get(int index);
   public HttpPostedFile Get(string name);
   public string GetKey(int index);
}

Hierarchy

System.Object System.Collections.Specialized.NameObjectCollectionBase(System.Collections.ICollection, System.Collections.IEnumerable, System.Runtime.Serialization.ISerializable, System.Runtime.Serialization.IDeserializationCallback) HttpFileCollection

Returned By

HttpRequest.Files

      Previous Section Next Section