Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

TextWriter Methods

The methods of the TextWriter class are listed here. For a complete list of TextWriter class members, see the TextWriter Members topic.

Public Methods

public methodClose

Supported by the .NET Compact Framework.

Closes the current writer and releases any system resources associated with the writer.
public methodCreateObjRef (inherited from MarshalByRefObject) Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

Overloaded. Determines whether two Object instances are equal.
public methodFlush

Supported by the .NET Compact Framework.

Clears all buffers for the current writer and causes any buffered data to be written to the underlying device.
public methodGetHashCode (inherited from Object)

Supported by the .NET Compact Framework.

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetLifetimeService (inherited from MarshalByRefObject) Retrieves the current lifetime service object that controls the lifetime policy for this instance.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodInitializeLifetimeService (inherited from MarshalByRefObject) Obtains a lifetime service object to control the lifetime policy for this instance.
public methodstatic (Shared in Visual Basic)Synchronized

Supported by the .NET Compact Framework.

Creates a thread-safe wrapper around the specified TextWriter.
public methodToString (inherited from Object)

Supported by the .NET Compact Framework.

Returns a String that represents the current Object.
public methodWrite

Supported by the .NET Compact Framework.

Overloaded. Writes the given data type to a text stream.
public methodWriteLine

Supported by the .NET Compact Framework.

Overloaded. Writes some data as specified by the overloaded parameters, followed by a line terminator.

Protected Methods

protected methodDispose

Supported by the .NET Compact Framework.

Releases the unmanaged resources used by the TextWriter and optionally releases the managed resources.
protected methodFinalize (inherited from Object)

Supported by the .NET Compact Framework.

Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

See Also

TextWriter Class | System.IO Namespace

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft