StreamWriter.WriteLine Metodo

Definizione

Overload

WriteLine(String, Object, Object, Object)

Scrive una stringa formattata e una nuova riga nel flusso, usando la stessa semantica di Format(String, Object).

WriteLine(String, Object, Object)

Scrive una stringa formattata e una nuova riga nel flusso, usando la stessa semantica del metodo Format(String, Object, Object).

WriteLine(String, Object[])

Scrive una stringa formattata e una nuova riga nel flusso, usando la stessa semantica di Format(String, Object).

WriteLine(String)

Scrive una stringa nel flusso, seguita da un terminatore di riga.

WriteLine(ReadOnlySpan<Char>)

Scrive nel flusso la rappresentazione testuale di un intervallo di caratteri, seguita da un terminatore di riga.

WriteLine(String, Object)

Scrive una stringa formattata e una nuova riga nel flusso, usando la stessa semantica del metodo Format(String, Object).

WriteLine(String, Object, Object, Object)

Source:
StreamWriter.cs
Source:
StreamWriter.cs
Source:
StreamWriter.cs

Scrive una stringa formattata e una nuova riga nel flusso, usando la stessa semantica di Format(String, Object).

public:
 override void WriteLine(System::String ^ format, System::Object ^ arg0, System::Object ^ arg1, System::Object ^ arg2);
public override void WriteLine (string format, object? arg0, object? arg1, object? arg2);
override this.WriteLine : string * obj * obj * obj -> unit
Public Overrides Sub WriteLine (format As String, arg0 As Object, arg1 As Object, arg2 As Object)

Parametri

format
String

Stringa in formato composito.

arg0
Object

Primo oggetto da formattare e scrivere.

arg1
Object

Secondo oggetto da formattare e scrivere.

arg2
Object

Terzo oggetto da formattare e scrivere.

Commenti

Per WriteLine(String, Object, Object, Object) una descrizione delle funzionalità di formattazione composita offerte, vedere .

Si applica a

WriteLine(String, Object, Object)

Source:
StreamWriter.cs
Source:
StreamWriter.cs
Source:
StreamWriter.cs

Scrive una stringa formattata e una nuova riga nel flusso, usando la stessa semantica del metodo Format(String, Object, Object).

public:
 override void WriteLine(System::String ^ format, System::Object ^ arg0, System::Object ^ arg1);
public override void WriteLine (string format, object? arg0, object? arg1);
override this.WriteLine : string * obj * obj -> unit
Public Overrides Sub WriteLine (format As String, arg0 As Object, arg1 As Object)

Parametri

format
String

Stringa in formato composito.

arg0
Object

Primo oggetto da formattare e scrivere.

arg1
Object

Secondo oggetto da formattare e scrivere.

Commenti

Per WriteLine(String, Object, Object) una descrizione delle funzionalità di formattazione composita offerte, vedere .

Si applica a

WriteLine(String, Object[])

Source:
StreamWriter.cs
Source:
StreamWriter.cs
Source:
StreamWriter.cs

Scrive una stringa formattata e una nuova riga nel flusso, usando la stessa semantica di Format(String, Object).

public:
 override void WriteLine(System::String ^ format, ... cli::array <System::Object ^> ^ arg);
public override void WriteLine (string format, params object?[] arg);
override this.WriteLine : string * obj[] -> unit
Public Overrides Sub WriteLine (format As String, ParamArray arg As Object())

Parametri

format
String

Stringa in formato composito.

arg
Object[]

Matrice di oggetti che contiene zero o più oggetti da formattare e scrivere.

Commenti

Per WriteLine(String, Object[]) una descrizione delle funzionalità di formattazione composita offerte, vedere .

Si applica a

WriteLine(String)

Source:
StreamWriter.cs
Source:
StreamWriter.cs
Source:
StreamWriter.cs

Scrive una stringa nel flusso, seguita da un terminatore di riga.

public:
 override void WriteLine(System::String ^ value);
public override void WriteLine (string? value);
public override void WriteLine (string value);
override this.WriteLine : string -> unit
Public Overrides Sub WriteLine (value As String)

Parametri

value
String

Stringa da scrivere. Se il parametro value è null, verrà scritto solo il terminatore di riga.

Commenti

Questo overload equivale all'overload TextWriter.Write(Char[]) .

Il terminatore di riga è definito dal campo CoreNewLine.

Tramite questo metodo non vengono cercati nella stringa specificata i singoli caratteri di nuova riga (esadecimale 0x000a) e non vengono sostituiti con NewLine.

Per un elenco delle attività di I/O comuni, vedere Attività di I/O comuni.

Si applica a

WriteLine(ReadOnlySpan<Char>)

Source:
StreamWriter.cs
Source:
StreamWriter.cs
Source:
StreamWriter.cs

Scrive nel flusso la rappresentazione testuale di un intervallo di caratteri, seguita da un terminatore di riga.

public:
 override void WriteLine(ReadOnlySpan<char> buffer);
public override void WriteLine (ReadOnlySpan<char> buffer);
override this.WriteLine : ReadOnlySpan<char> -> unit
Public Overrides Sub WriteLine (buffer As ReadOnlySpan(Of Char))

Parametri

buffer
ReadOnlySpan<Char>

Intervallo di caratteri da scrivere nel flusso.

Commenti

La rappresentazione testuale del valore specificato viene generata chiamando readOnlySpan<Char>. Metodo ToString .

Il terminatore di riga è definito dal campo CoreNewLine.

Per un elenco delle attività di I/O comuni, vedere Attività di I/O comuni.

Si applica a

WriteLine(String, Object)

Source:
StreamWriter.cs
Source:
StreamWriter.cs
Source:
StreamWriter.cs

Scrive una stringa formattata e una nuova riga nel flusso, usando la stessa semantica del metodo Format(String, Object).

public:
 override void WriteLine(System::String ^ format, System::Object ^ arg0);
public override void WriteLine (string format, object? arg0);
override this.WriteLine : string * obj -> unit
Public Overrides Sub WriteLine (format As String, arg0 As Object)

Parametri

format
String

Stringa in formato composito.

arg0
Object

Oggetto da formattare e scrivere.

Commenti

Per WriteLine(String, Object) una descrizione delle funzionalità di formattazione composita offerte, vedere .

Si applica a