StringWriter Constructor (StringBuilder, IFormatProvider)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Initializes a new instance of the StringWriter class that writes to the specified StringBuilder and has the specified format provider.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- sb
- Type: System.Text.StringBuilder
The StringBuilder to write to.
- formatProvider
- Type: System.IFormatProvider
An IFormatProvider object that controls formatting.
| Exception | Condition |
|---|---|
| ArgumentNullException | sb is Nothing. |
Show: