MobileTextWriter.BeginFile Method

Begins a response file.

Namespace: System.Web.UI.MobileControls.Adapters
Assembly: System.Web.Mobile (in system.web.mobile.dll)

public:
virtual void BeginFile (
	String^ url, 
	String^ contentType, 
	String^ charset
) override
public void BeginFile (
	String url, 
	String contentType, 
	String charset
)
public override function BeginFile (
	url : String, 
	contentType : String, 
	charset : String
)
Not applicable.

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 Charset).

Exception typeCondition

Exception

this method is called more than once.

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.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1

Community Additions

ADD
Show: