Share via


BeginFile Method

This method begins a response file.

public void BeginFile(
   string url, 
   string contentType, 
   string charset
)

Parameters

  • url
    The unique URL for the file.
  • contentType
    The MIME type of the file.
  • charset
    The character set used for the file (usually, the same as HttpResponse.Charset).

Remarks

The page adapter must call this method before rendering the page, but after calling the BeginResponse method. An exception is raised if the BeginFile method is called more than once.

See Also

Applies to: MultiPartWriter Class