แก้ไข

แชร์ผ่าน


XhtmlMobileTextWriter Class

Definition

Caution

The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.

Provides text writer functionality for devices targeted by the XHTML adapter set, including Extensible Hypertext Markup Language (XHTML), XHTML Mobile, and Wireless Markup Language (WML). For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

public ref class XhtmlMobileTextWriter : System::Web::UI::MobileControls::Adapters::MobileTextWriter
public class XhtmlMobileTextWriter : System.Web.UI.MobileControls.Adapters.MobileTextWriter
[System.Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")]
public class XhtmlMobileTextWriter : System.Web.UI.MobileControls.Adapters.MobileTextWriter
type XhtmlMobileTextWriter = class
    inherit MobileTextWriter
[<System.Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")>]
type XhtmlMobileTextWriter = class
    inherit MobileTextWriter
Public Class XhtmlMobileTextWriter
Inherits MobileTextWriter
Inheritance
Attributes

Remarks

XHTML is an XML-compliant markup that is based on HTML 4.1 and allows you to create Web sites suitable for multiple device types. It merges HTML's ease of use with XML's strict element guidelines to produce a markup language with a wide range of format and style options and reduced markup tag ambiguity. This class provides formatting capabilities that ASP.NET server controls use when rendering XHTML content to clients. The XhtmlMobileTextWriter renders markup that meets the standards of three different XHTML doc types: XHTML Basic, which supports limited style and format elements; XHTML Mobile Profile, which supports inline style sheets; and WML 2.0, which is based on XHTML 1.1 and supports cascading style sheets.

This class is used primarily by developers of custom mobile page and control adapters.

The XhtmlMobileTextWriter class can render all HTML elements, attributes, and style attributes, but, unlike the HtmlTextWriter class, does not allow title capitalization of these markup elements.

An XhtmlPageAdapter instantiates an XhtmlMobileTextWriter and depending on the capabilities of the target device, initializes a number of properties, such as SupportsNoWrapStyle, SuppressNewLine, and UseDivsForBreaks, that assist the text writer in rendering the page and its controls.

Your adapter can use a variety of methods to apply styles and control formatting:

You can use the members of this class, and any members it inherits from the MobileTextWriter class, to create custom text writers to use in a custom XHTML page or in class adapters. You can also create new derived classes that override the standard behavior of the XhtmlMobileTextWriter class.

Device filtering is required in order to use a specific adapter or text writer for a server control. For more information about device filtering, see Architectural Overview of Adaptive Control Behavior and Device Filtering Overview.

Constructors

XhtmlMobileTextWriter(TextWriter, MobileCapabilities)

Initializes a new instance of the ChtmlMobileTextWriter class for the provided device, using the writer parameter as the base writer object. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

Fields

CoreNewLine

Stores the newline characters used for this TextWriter.

(Inherited from TextWriter)
DefaultTabString

Represents a single tab character.

(Inherited from HtmlTextWriter)
DoubleQuoteChar

Represents the quotation mark (") character.

(Inherited from HtmlTextWriter)
EndTagLeftChars

Represents the left angle bracket and slash mark (</) of the closing tag of a markup element.

(Inherited from HtmlTextWriter)
EqualsChar

Represents the equal sign (=).

(Inherited from HtmlTextWriter)
EqualsDoubleQuoteString

Represents an equal sign (=) and a double quotation mark (") together in a string (=").

(Inherited from HtmlTextWriter)
SelfClosingChars

Represents a space and the self-closing slash mark (/) of a markup tag.

(Inherited from HtmlTextWriter)
SelfClosingTagEnd

Represents the closing slash mark and right angle bracket (/>) of a self-closing markup element.

(Inherited from HtmlTextWriter)
SemicolonChar

Represents the semicolon (;).

(Inherited from HtmlTextWriter)
SingleQuoteChar

Represents an apostrophe (').

(Inherited from HtmlTextWriter)
SlashChar

Represents the slash mark (/).

(Inherited from HtmlTextWriter)
SpaceChar

Represents a space ( ) character.

(Inherited from HtmlTextWriter)
StyleEqualsChar

Represents the style equals (:) character used to set style attributes equal to values.

(Inherited from HtmlTextWriter)
TagLeftChar

Represents the opening angle bracket (<) of a markup tag.

(Inherited from HtmlTextWriter)
TagRightChar

Represents the closing angle bracket (>) of a markup tag.

(Inherited from HtmlTextWriter)

Properties

CacheKey

Gets the unique key used to retrieve items from the Cache. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

CustomBodyStyles

Gets or sets custom style settings for the body of the page. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

Device

Retrieves the MobileCapabilities object for the current requesting device. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

(Inherited from MobileTextWriter)
Encoding

Gets the encoding that the HtmlTextWriter object uses to write content to the page.

(Inherited from HtmlTextWriter)
FormatProvider

Gets an object that controls formatting.

(Inherited from TextWriter)
Indent

Gets or sets the number of tab positions to indent the beginning of each line of markup.

(Inherited from HtmlTextWriter)
InnerWriter

Gets or sets the text writer that writes the inner content of the markup element.

(Inherited from HtmlTextWriter)
NewLine

Gets or sets the line terminator string used by the HtmlTextWriter object.

(Inherited from HtmlTextWriter)
SessionKey

Gets the key used to retrieve items from the Session. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

SupportsMultiPart

Gets a value indicating whether multipart writing is supported. Default is false. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

(Inherited from MobileTextWriter)
SupportsNoWrapStyle

Indicates whether the target device supports the "white-space: nowrap;" style-sheet attribute. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

SuppressNewLine

Indicates whether the WriteLine() method should write a line terminator string to the output stream. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

TagKey

Gets or sets the HtmlTextWriterTag value for the specified markup element.

(Inherited from HtmlTextWriter)
TagName

Gets or sets the tag name of the markup element being rendered.

(Inherited from HtmlTextWriter)
UseDivsForBreaks

Indicates whether to use <div> tags for line breaks rather than <br/> tags when writing line terminators. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

Methods

AddAttribute(HtmlTextWriterAttribute, String, Boolean)

Adds the markup attribute and the attribute value to the opening tag of the element that the HtmlTextWriter object creates with a subsequent call to the RenderBeginTag method, with optional encoding.

(Inherited from HtmlTextWriter)
AddAttribute(HtmlTextWriterAttribute, String)

Adds the markup attribute and the attribute value to the opening tag of the element that the HtmlTextWriter object creates with a subsequent call to the RenderBeginTag method.

(Inherited from HtmlTextWriter)
AddAttribute(String, String, Boolean)

Adds the specified markup attribute and value to the opening tag of the element that the HtmlTextWriter object creates with a subsequent call to the RenderBeginTag method, with optional encoding.

(Inherited from HtmlTextWriter)
AddAttribute(String, String, HtmlTextWriterAttribute)

Adds the specified markup attribute and value, along with an HtmlTextWriterAttribute enumeration value, to the opening tag of the element that the HtmlTextWriter object creates with a subsequent call to the RenderBeginTag method.

(Inherited from HtmlTextWriter)
AddAttribute(String, String)

Adds the specified markup attribute and value to the opening tag of the element that the HtmlTextWriter object creates with a subsequent call to the RenderBeginTag method.

(Inherited from HtmlTextWriter)
AddOnEnterForwardSetVar(String, String)

Adds a provided variable name and value to a list of variables to be embedded in pages for WML devices. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

AddOnEnterForwardSetVar(String)

Adds a provided variable name to a list of variables to be embedded in pages for WML devices. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

AddResource(String, String)

Adds a resource reference to the given URL, with the optional MIME type for the specified content. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

(Inherited from MobileTextWriter)
AddResource(String)

Adds a resource reference to the given URL, with the optional MIME type for the specified content. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

(Inherited from MultiPartWriter)
AddStyleAttribute(HtmlTextWriterStyle, String)

Adds the markup style attribute associated with the specified HtmlTextWriterStyle value and the attribute value to the opening markup tag created by a subsequent call to the RenderBeginTag method.

(Inherited from HtmlTextWriter)
AddStyleAttribute(String, String, HtmlTextWriterStyle)

Adds the specified markup style attribute and the attribute value, along with an HtmlTextWriterStyle enumeration value, to the opening markup tag created by a subsequent call to the RenderBeginTag method.

(Inherited from HtmlTextWriter)
AddStyleAttribute(String, String)

Adds the specified markup style attribute and the attribute value to the opening markup tag created by a subsequent call to the RenderBeginTag method.

(Inherited from HtmlTextWriter)
BeginCachedRendering()

Instructs the XhtmlMobileTextWriter object to save all rendered markup until written out in its entirety by the EndCachedRendering() method. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

BeginFile(String, String, String)

Begins a response file. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

(Inherited from MobileTextWriter)
BeginRender()

Notifies an HtmlTextWriter object, or an object of a derived class, that a control is about to be rendered.

(Inherited from HtmlTextWriter)
BeginResponse()

Begins a response. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

(Inherited from MobileTextWriter)
ClearPendingBreak()

Removes a break that was to be rendered after writing the current element to the output stream. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

Close()

Closes the HtmlTextWriter object and releases any system resources associated with it.

(Inherited from HtmlTextWriter)
CreateObjRef(Type)

Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(Inherited from MarshalByRefObject)
Dispose()

Releases all resources used by the TextWriter object.

(Inherited from TextWriter)
Dispose(Boolean)

Releases the unmanaged resources used by the TextWriter and optionally releases the managed resources.

(Inherited from TextWriter)
DisposeAsync()

Asynchronously releases all resources used by the TextWriter object.

(Inherited from TextWriter)
EncodeAttributeValue(HtmlTextWriterAttribute, String)

Encodes the value of the specified markup attribute based on the requirements of the HttpRequest object of the current context.

(Inherited from HtmlTextWriter)
EncodeAttributeValue(String, Boolean)

Encodes the value of the specified markup attribute based on the requirements of the HttpRequest object of the current context.

(Inherited from HtmlTextWriter)
EncodeUrl(String)

Performs minimal URL encoding by converting spaces in the specified URL to the string "%20".

(Inherited from HtmlTextWriter)
EndCachedRendering()

Writes out the cached markup and instructs the XhtmlMobileTextWriter not to save rendered markup. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

EndFile()

Ends a response file. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

(Inherited from MobileTextWriter)
EndRender()

Notifies an HtmlTextWriter object, or an object of a derived class, that a control has finished rendering. You can use this method to close any markup elements opened in the BeginRender() method.

(Inherited from HtmlTextWriter)
EndResponse()

Ends a response. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

(Inherited from MobileTextWriter)
EnterFormat(Style)

Sets the provided style as the current formatting style if the BeginCachedRendering() method has been called. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

EnterLayout(Style)

Sets the provided style as the current layout style if the BeginCachedRendering() method has been called. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

EnterStyle(Style, HtmlTextWriterTag)

Writes the opening tag of a markup element that contains attributes that implement the layout and character formatting of the specified style.

(Inherited from HtmlTextWriter)
EnterStyle(Style)

Sets the provided style as the current style if the BeginCachedRendering() method has been called. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

EnterStyle(Style)

Writes the opening tag of a <span> element that contains attributes that implement the layout and character formatting of the specified style.

(Inherited from HtmlTextWriter)
Equals(Object)

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

(Inherited from Object)
ExitFormat(Style, Boolean)

Removes the current style, restores the previous style as the current formatting style, and calls the WriteEndTag(String) method to close the current element. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

ExitFormat(Style)

Removes the current style, restores the previous style as the current formatting style, and calls the WriteEndTag(String) method to close the current element. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

ExitLayout(Style, Boolean)

Removes the current style, restores the previous style as the current layout style, and calls the WriteEndTag(String) method to close the current element. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

ExitLayout(Style)

Removes the current style, restores the previous style as the current layout style, and calls the WriteEndTag(String) method to close the current element. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

ExitStyle(Style, HtmlTextWriterTag)

Writes the closing tag of the specified markup element to end the specified layout and character formatting.

(Inherited from HtmlTextWriter)
ExitStyle(Style)

Removes the current style, restores the previous style as the current style, and calls the WriteEndTag(String) method to close the current element. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

ExitStyle(Style)

Writes the closing tag of a <span> element to end the specified layout and character formatting.

(Inherited from HtmlTextWriter)
FilterAttributes()

Removes all the markup and style attributes on all properties of the page or Web server control.

(Inherited from HtmlTextWriter)
Flush()

Clears all buffers for the current HtmlTextWriter object and causes any buffered data to be written to the output stream.

(Inherited from HtmlTextWriter)
FlushAsync()

Asynchronously clears all buffers for the current writer and causes any buffered data to be written to the underlying device.

(Inherited from TextWriter)
FlushAsync(CancellationToken)

Asynchronously clears all buffers for the current writer and causes any buffered data to be written to the underlying device.

(Inherited from TextWriter)
GetAttributeKey(String)

Obtains the corresponding HtmlTextWriterAttribute enumeration value for the specified attribute.

(Inherited from HtmlTextWriter)
GetAttributeName(HtmlTextWriterAttribute)

Obtains the name of the markup attribute associated with the specified HtmlTextWriterAttribute value.

(Inherited from HtmlTextWriter)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetLifetimeService()
Obsolete.

Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
GetStyleKey(String)

Obtains the HtmlTextWriterStyle enumeration value for the specified style.

(Inherited from HtmlTextWriter)
GetStyleName(HtmlTextWriterStyle)

Obtains the markup style attribute name associated with the specified HtmlTextWriterStyle enumeration value.

(Inherited from HtmlTextWriter)
GetTagKey(String)

Obtains the HtmlTextWriterTag enumeration value associated with the specified markup element.

(Inherited from HtmlTextWriter)
GetTagName(HtmlTextWriterTag)

Obtains the markup element associated with the specified HtmlTextWriterTag enumeration value.

(Inherited from HtmlTextWriter)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
InitializeLifetimeService()
Obsolete.

Obtains a lifetime service object to control the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
IsAttributeDefined(HtmlTextWriterAttribute, String)

Determines whether the specified markup attribute and its value are rendered during the next call to the RenderBeginTag method.

(Inherited from HtmlTextWriter)
IsAttributeDefined(HtmlTextWriterAttribute)

Determines whether the specified markup attribute and its value are rendered during the next call to the RenderBeginTag method.

(Inherited from HtmlTextWriter)
IsStyleAttributeDefined(HtmlTextWriterStyle, String)

Determines whether the specified markup style attribute and its value are rendered during the next call to the RenderBeginTag method.

(Inherited from HtmlTextWriter)
IsStyleAttributeDefined(HtmlTextWriterStyle)

Determines whether the specified markup style attribute is rendered during the next call to the RenderBeginTag method.

(Inherited from HtmlTextWriter)
IsStyleSheetEmpty()

Returns a value indicating whether a style has been set. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

IsValidFormAttribute(String)

Checks an attribute to ensure that it can be rendered in the opening tag of a <form> markup element.

(Inherited from HtmlTextWriter)
MarkWmlOnEventLocation()

Marks the location in the output stream to insert the <wml:onevent> element. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
MemberwiseClone(Boolean)

Creates a shallow copy of the current MarshalByRefObject object.

(Inherited from MarshalByRefObject)
NewUrl(String)

Generates a unique URL. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

(Inherited from MultiPartWriter)
OnAttributeRender(String, String, HtmlTextWriterAttribute)

Determines whether the specified markup attribute and its value can be rendered to the current markup element.

(Inherited from HtmlTextWriter)
OnStyleAttributeRender(String, String, HtmlTextWriterStyle)

Determines whether the specified markup style attribute and its value can be rendered to the current markup element.

(Inherited from HtmlTextWriter)
OnTagRender(String, HtmlTextWriterTag)

Determines whether the specified markup element will be rendered to the requesting page.

(Inherited from HtmlTextWriter)
OutputTabs()

Writes a series of tab strings that represent the indentation level for a line of markup characters.

(Inherited from HtmlTextWriter)
PopEndTag()

Removes the most recently saved markup element from the list of rendered elements.

(Inherited from HtmlTextWriter)
PushEndTag(String)

Saves the specified markup element for later use when generating the end tag for a markup element.

(Inherited from HtmlTextWriter)
RenderAfterContent()

Writes any text or spacing that occurs after the content and before the closing tag of the markup element to the markup output stream.

(Inherited from HtmlTextWriter)
RenderAfterTag()

Writes any spacing or text that occurs after the closing tag for a markup element.

(Inherited from HtmlTextWriter)
RenderBeforeContent()

Writes any text or spacing before the content and after the opening tag of a markup element.

(Inherited from HtmlTextWriter)
RenderBeforeTag()

Writes any text or spacing that occurs before the opening tag of a markup element.

(Inherited from HtmlTextWriter)
RenderBeginTag(HtmlTextWriterTag)

Writes the opening tag of the markup element associated with the specified HtmlTextWriterTag enumeration value to the output stream.

(Inherited from HtmlTextWriter)
RenderBeginTag(String)

Writes the opening tag of the specified markup element to the output stream.

(Inherited from HtmlTextWriter)
RenderEndTag()

Writes the end tag of a markup element to the output stream.

(Inherited from HtmlTextWriter)
SetBodyStyle(Style)

Sets the provided style as the style for the <body> element of the page and as the default style for its child controls. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

SetCacheKey(Cache)

Creates a unique string to use when retrieving the style sheet from the cache. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

SetPendingBreak()

Sets a line break to be rendered after rendering the current element, if it is not a block element and if the SuppressNewLine property is false. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

SetSessionKey(HttpSessionState)

Creates a unique string for a client to use to retrieve a style sheet from the Session object. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

ToString()

Returns a string that represents the current object.

(Inherited from Object)
Write(Boolean)

Writes the text representation of a Boolean value to the output stream, along with any pending tab spacing.

(Inherited from HtmlTextWriter)
Write(Char)

Writes the text representation of a Unicode character to the output stream, along with any pending tab spacing.

(Inherited from HtmlTextWriter)
Write(Char[], Int32, Int32)

Writes the text representation of a subarray of Unicode characters to the output stream, along with any pending tab spacing.

(Inherited from HtmlTextWriter)
Write(Char[])

Writes the text representation of an array of Unicode characters to the output stream, along with any pending tab spacing.

(Inherited from HtmlTextWriter)
Write(Decimal)

Writes the text representation of a decimal value to the text stream.

(Inherited from TextWriter)
Write(Double)

Writes the text representation of a double-precision floating-point number to the output stream, along with any pending tab spacing.

(Inherited from HtmlTextWriter)
Write(Int32)

Writes the text representation of a 32-byte signed integer to the output stream, along with any pending tab spacing.

(Inherited from HtmlTextWriter)
Write(Int64)

Writes the text representation of a 64-byte signed integer to the output stream, along with any pending tab spacing.

(Inherited from HtmlTextWriter)
Write(Object)

Writes the text representation of an object to the output stream, along with any pending tab spacing.

(Inherited from HtmlTextWriter)
Write(ReadOnlySpan<Char>)

Writes a character span to the text stream.

(Inherited from TextWriter)
Write(Single)

Writes the text representation of a single-precision floating-point number to the output stream, along with any pending tab spacing.

(Inherited from HtmlTextWriter)
Write(String, Object, Object, Object)

Writes a formatted string to the text stream, using the same semantics as the Format(String, Object, Object, Object) method.

(Inherited from TextWriter)
Write(String, Object, Object)

Writes a formatted string that contains the text representation of two objects to the output stream, along with any pending tab spacing. This method uses the same semantics as the Format(String, Object, Object) method.

(Inherited from HtmlTextWriter)
Write(String, Object)

Writes a tab string and a formatted string to the output stream, using the same semantics as the Format(String, Object) method, along with any pending tab spacing.

(Inherited from HtmlTextWriter)
Write(String, Object[])

Writes a formatted string that contains the text representation of an object array to the output stream, along with any pending tab spacing. This method uses the same semantics as the Format(String, Object[]) method.

(Inherited from HtmlTextWriter)
Write(String, ReadOnlySpan<Object>)

Writes a formatted string to the text stream, using the same semantics as Format(String, ReadOnlySpan<Object>).

(Inherited from TextWriter)
Write(String)

Writes the specified string to the output stream, along with any pending tab spacing.

(Inherited from HtmlTextWriter)
Write(StringBuilder)

Writes a string builder to the text stream.

(Inherited from TextWriter)
Write(UInt32)

Writes the text representation of a 4-byte unsigned integer to the text stream.

(Inherited from TextWriter)
Write(UInt64)

Writes the text representation of an 8-byte unsigned integer to the text stream.

(Inherited from TextWriter)
WriteAsync(Char)

Writes a character to the text stream asynchronously.

(Inherited from TextWriter)
WriteAsync(Char[], Int32, Int32)

Writes a subarray of characters to the text stream asynchronously.

(Inherited from TextWriter)
WriteAsync(Char[])

Writes a character array to the text stream asynchronously.

(Inherited from TextWriter)
WriteAsync(ReadOnlyMemory<Char>, CancellationToken)

Asynchronously writes a character memory region to the text stream.

(Inherited from TextWriter)
WriteAsync(String)

Writes a string to the text stream asynchronously.

(Inherited from TextWriter)
WriteAsync(StringBuilder, CancellationToken)

Asynchronously writes a string builder to the text stream.

(Inherited from TextWriter)
WriteAttribute(String, String, Boolean)

Writes an attribute and its value to the current element using the provided attribute and value, and encodes the value if specified. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

WriteAttribute(String, String)

Writes the specified markup attribute and value to the output stream.

(Inherited from HtmlTextWriter)
WriteBeginTag(String)

Writes any tab spacing and the opening tag of the specified markup element to the output stream. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

WriteBreak()

If SuppressNewLine is false, writes a markup element that adds a new line to the output stream. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

WriteCachedMarkup()

Writes out all markup cached since calling the BeginCachedRendering() method. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

WriteDoctypeDeclaration(Doctype)

Writes a <!DOCTYPE> declaration that is unique to target devices represented by the provided Doctype value. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

WriteEncodedAttributeValue(String)

Encodes and writes the provided value to the output stream. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

WriteEncodedText(String)

Writes the given text, encoding it correctly for the target device. Derived writer classes can override this method.

(Inherited from MobileTextWriter)
WriteEncodedUrl(String)

Writes the given URL, encoding it correctly for the target device. The URL might include parameters.

(Inherited from MobileTextWriter)
WriteEncodedUrlParameter(String)

Writes the given URL parameter text, encoding it correctly for the target device.

(Inherited from MobileTextWriter)
WriteEndTag(String)

Writes any tab spacing and the closing tag of the specified markup element. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

WriteFullBeginTag(String)

Writes any tab spacing and the full opening tag of the specified markup element to the output stream. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

WriteHiddenField(String, String)

Writes the markup for a hidden field to the output stream using the provided name and value. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

WriteHiddenField(String)

Writes the markup for a hidden field to the output stream using the provided name. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

WriteLine()

Writes a line terminator string to the output stream if SuppressNewLine is false. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

WriteLine(Boolean)

Writes any pending tab spacing and the text representation of a Boolean value, then if SuppressNewLine is false, writes a line terminator string to the output stream. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

WriteLine(Char)

Writes any pending tab spacing and a Unicode character, and if SuppressNewLine is false, writes a line terminator string to the output stream. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

WriteLine(Char[], Int32, Int32)

Writes any pending tab spacing and a subarray of Unicode characters, and if SuppressNewLine is false, writes a line terminator string to the output stream. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

WriteLine(Char[])

Writes any pending tab spacing and an array of Unicode characters, and if SuppressNewLine is false, writes a line terminator string to the output stream. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

WriteLine(Decimal)

Writes the text representation of a decimal value to the text stream, followed by a line terminator.

(Inherited from TextWriter)
WriteLine(Double)

Writes any pending tab spacing and the text representation of a double-precision floating-point number, and if SuppressNewLine is false, writes a line terminator string to the output stream. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

WriteLine(Int32)

Writes any pending tab spacing and the text representation of a 32-byte signed integer, and if SuppressNewLine is false, writes a line terminator string to the output stream. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

WriteLine(Int64)

Writes any pending tab spacing and the text representation of a 64-byte signed integer, and if SuppressNewLine is false, writes a line terminator string to the output stream. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

WriteLine(Object)

Writes any pending tab spacing and the text representation of an object, and if SuppressNewLine is false, writes a line terminator string to the output stream. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

WriteLine(ReadOnlySpan<Char>)

Writes the text representation of a character span to the text stream, followed by a line terminator.

(Inherited from TextWriter)
WriteLine(Single)

Writes any pending tab spacing and the text representation of a single-precision floating-point number, and if SuppressNewLine is false, writes a line terminator string to the output stream. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

WriteLine(String, Object, Object, Object)

Writes out a formatted string and a new line to the text stream, using the same semantics as Format(String, Object).

(Inherited from TextWriter)
WriteLine(String, Object, Object)

Writes any pending tab spacing and a formatted string that contains the text representation of two objects, and if SuppressNewLine is false, writes a line terminator string to the output stream. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

WriteLine(String, Object)

Writes any pending tab spacing and a formatted string containing the text representation of an object, and if SuppressNewLine is false, writes a line terminator string to the output stream. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

WriteLine(String, Object[])

Writes any pending tab spacing and a formatted string that contains the text representation of an object array, and if SuppressNewLine is false, writes a line terminator string to the output stream. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

WriteLine(String, ReadOnlySpan<Object>)

Writes out a formatted string and a new line to the text stream, using the same semantics as Format(String, ReadOnlySpan<Object>).

(Inherited from TextWriter)
WriteLine(String)

Writes any pending tab spacing and a text string, and if SuppressNewLine is false, writes a line terminator string to the output stream. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

WriteLine(StringBuilder)

Writes the text representation of a string builder to the text stream, followed by a line terminator.

(Inherited from TextWriter)
WriteLine(UInt32)

Writes any pending tab spacing and the text representation of a 4-byte unsigned integer, followed by a line terminator string, to the output stream.

(Inherited from HtmlTextWriter)
WriteLine(UInt64)

Writes the text representation of an 8-byte unsigned integer to the text stream, followed by a line terminator.

(Inherited from TextWriter)
WriteLineAsync()

Asynchronously writes a line terminator to the text stream.

(Inherited from TextWriter)
WriteLineAsync(Char)

Asynchronously writes a character to the text stream, followed by a line terminator.

(Inherited from TextWriter)
WriteLineAsync(Char[], Int32, Int32)

Asynchronously writes a subarray of characters to the text stream, followed by a line terminator.

(Inherited from TextWriter)
WriteLineAsync(Char[])

Asynchronously writes an array of characters to the text stream, followed by a line terminator.

(Inherited from TextWriter)
WriteLineAsync(ReadOnlyMemory<Char>, CancellationToken)

Asynchronously writes the text representation of a character memory region to the text stream, followed by a line terminator.

(Inherited from TextWriter)
WriteLineAsync(String)

Asynchronously writes a string to the text stream, followed by a line terminator.

(Inherited from TextWriter)
WriteLineAsync(StringBuilder, CancellationToken)

Asynchronously writes the text representation of a string builder to the text stream, followed by a line terminator.

(Inherited from TextWriter)
WriteLineNoTabs(String)

Writes a string, followed by a line terminator string, to the output stream. This method ignores any specified tab spacing.

(Inherited from HtmlTextWriter)
WritePendingBreak()

Writes a line terminator string to the output stream if the current element is not a block element such as <p>, <div>, <ul>, <table>, and SuppressNewLine is false, and there is a pending break. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

WriteStyleAttribute(String, String, Boolean)

Writes the specified style attribute and value to the output stream, and encodes the value, if specified.

(Inherited from HtmlTextWriter)
WriteStyleAttribute(String, String)

Writes the specified style attribute to the output stream.

(Inherited from HtmlTextWriter)
WriteUrlEncodedString(String, Boolean)

Writes the given string, encoding it according to URL requirements.

(Inherited from MobileTextWriter)
WriteUrlParameter(String, String)

Writes an encoded URL, which includes a query-string parameter, to the output stream. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

WriteXmlDeclaration()

Writes an XML declaration along with the current document encoding value. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

Applies to

See also