StringWriter.GetStringBuilder Metoda

Definice

Vrátí základní hodnotu StringBuilder.

public:
 virtual System::Text::StringBuilder ^ GetStringBuilder();
public virtual System.Text.StringBuilder GetStringBuilder ();
abstract member GetStringBuilder : unit -> System.Text.StringBuilder
override this.GetStringBuilder : unit -> System.Text.StringBuilder
Public Overridable Function GetStringBuilder () As StringBuilder

Návraty

Základní StringBuilderhodnota .

Příklady

Tento příklad kódu je součástí většího příkladu StringWriter() pro konstruktor.

// Use the underlying StringBuilder for more complex 
// manipulations of the string.
strWriter->GetStringBuilder()->Insert( 0, "Invalid " );
// Use the underlying StringBuilder for more complex
// manipulations of the string.
strWriter.GetStringBuilder().Insert(0, "Invalid ");
' Use the underlying StringBuilder for more complex 
' manipulations of the string.
strWriter.GetStringBuilder().Insert(0, "Invalid ")

Poznámky

Toto je buď StringBuilder ten, který byl předán konstruktoru, nebo ten StringBuilder , který byl vytvořen automaticky.

Následující tabulka uvádí příklady dalších typických nebo souvisejících vstupně-výstupních úloh.

Požadovaná akce... Další informace naleznete v příkladu v tomto tématu...
Create textový soubor. Postupy: Zápis textu do souboru
Zápis do textového souboru Postupy: Zápis textu do souboru
Čtení z textového souboru. Postupy: Čtení textu ze souboru

Platí pro

Viz také