MobileTextWriter.BeginFile(String, String, String) Metoda

Definicja

Rozpoczyna plik odpowiedzi. Ten interfejs API jest przestarzały. Aby uzyskać informacje na temat tworzenia aplikacji mobilnych ASP.NET, zobacz Mobile Apps & Witryny z ASP.NET.

public:
 override void BeginFile(System::String ^ url, System::String ^ contentType, System::String ^ charset);
public override void BeginFile(string url, string contentType, string charset);
override this.BeginFile : string * string * string -> unit
Public Overrides Sub BeginFile (url As String, contentType As String, charset As String)

Parametry

url
String

Unikatowy adres URL pliku.

contentType
String

Typ MIME pliku.

charset
String

Zestaw znaków używany dla pliku (zwykle taki sam jak Charset).

Wyjątki

ta metoda jest wywoływana więcej niż raz.

Uwagi

Karta strony musi wywołać tę metodę przed renderowaniem strony, ale po wywołaniu BeginResponse metody . Wyjątek jest zgłaszany, jeśli metoda jest wywoływana BeginFile więcej niż raz.

Dotyczy

Zobacz też