Name
StringWriter
Synopsis
This class provides an alternative
to using a System.Text.StringBuilder
to create a
string. This allows you to create a string in the exact same
manner you would create a text file, which can be very useful. It
implements all of the TextWriter
methods.
Public Class StringWriter : Inherits TextWriter ' Public Constructors Public Sub New() Public Sub New( ByVal formatProvider As IFormatProvider) Public Sub New( ByVal sb As System.Text.StringBuilder) Public Sub New(ByVal sb As System.Text.StringBuilder, ByVal formatProvider As IFormatProvider) ' Public Instance Properties Overrides Public ReadOnly Property Encoding As Encoding ' Public Instance Methods Overrides Public Sub Close() Overridable Public Function GetStringBuilder( ) As StringBuilder Overrides Public Function ToString() As String Overrides Public Sub Write( ByVal value As Char) Overrides Public Sub Write(ByVal buffer As Char(), ByVal index As Integer, ByVal count As Integer) Overrides Public Sub Write( ByVal value As String) ' Protected Instance Methods Overrides Protected Sub Dispose(ByVal disposing As Boolean) End Class
Hierarchy
System.Object→System.MarshalByRefObject→TextWriter(System.IDisposable)→ StringWriter
Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.