Export (0) Print
Expand All

HttpFileCollection Class

Provides access to and organizes files uploaded by a client.

For a list of all members of this type, see HttpFileCollection Members.

System.Object
   System.Collections.Specialized.NameObjectCollectionBase
      System.Web.HttpFileCollection

[Visual Basic]
NotInheritable Public Class HttpFileCollection
   Inherits NameObjectCollectionBase
[C#]
public sealed class HttpFileCollection : NameObjectCollectionBase
[C++]
public __gc __sealed class HttpFileCollection : public
   NameObjectCollectionBase
[JScript]
public class HttpFileCollection extends NameObjectCollectionBase

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Remarks

Clients encode files and transmit them in the content body using multipart MIME format with an HTTP Content-Type header of multipart/form-data. ASP.NET extracts the encoded file(s) from the content body into individual members of an HttpFileCollection. Methods and properties of the HttpPostedFile class provide access to the contents and properties of each file.

Requirements

Namespace: System.Web

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

Assembly: System.Web (in System.Web.dll)

See Also

HttpFileCollection Members | System.Web Namespace

Show:
© 2014 Microsoft