Επεξεργασία

Κοινή χρήση μέσω


HttpPostedFileWrapper Class

Definition

Encapsulates the HTTP intrinsic object that provides access to individual files that have been uploaded by a client.

public ref class HttpPostedFileWrapper : System::Web::HttpPostedFileBase
public class HttpPostedFileWrapper : System.Web.HttpPostedFileBase
type HttpPostedFileWrapper = class
    inherit HttpPostedFileBase
Public Class HttpPostedFileWrapper
Inherits HttpPostedFileBase
Inheritance
HttpPostedFileWrapper

Remarks

The HttpPostedFileWrapper class derives from the HttpPostedFileBase class and serves as a wrapper for the HttpPostedFile class. This class exposes the functionality of the HttpPostedFile class while also exposing the HttpPostedFileBase type. The HttpPostedFileBase class enables you to replace the original implementation of the HttpPostedFile class in your application with a custom implementation, such as when you perform unit testing outside the ASP.NET pipeline.

Constructors

HttpPostedFileWrapper(HttpPostedFile)

Initializes a new instance of the HttpPostedFileWrapper class.

Properties

ContentLength

Gets the size of an uploaded file, in bytes.

ContentType

Gets the MIME content type of an uploaded file.

FileName

Gets the fully qualified name of the file on the client.

InputStream

Gets a Stream object that points to an uploaded file to prepare for reading the contents of the file.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
SaveAs(String)

Saves the contents of an uploaded file.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to