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.FormatProvider Property

Gets an object that controls formatting.

[Visual Basic]
Public Overridable ReadOnly Property FormatProvider As _
   IFormatProvider
[C#]
public virtual IFormatProvider FormatProvider {get;}
[C++]
public: __property virtual IFormatProvider* get_FormatProvider();
[JScript]
public function get FormatProvider() : IFormatProvider;

Property Value

An IFormatProvider object for a specific culture, or the formatting of the current culture if no other culture is specified.

Remarks

For an example of creating a file and writing text to a file, see Writing Text to a File. For an example of reading text from a file, see Reading Text from a File. For an example of reading from and writing to a binary file, see Reading and Writing to a Newly Created Data File.

The following table lists examples of other typical or related I/O tasks.

To do this... See the example in this topic...
Create a text file. Writing Text to a File
Write to a text file. Writing Text to a File
Read from a text file. Reading Text from a File

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

TextWriter Class | TextWriter Members | System.IO Namespace | Working with I/O | Reading Text from a File | Writing Text to a File

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