Export (0) Print
Expand All

TextWriter.WriteLine Method

Writes some data as specified by the overloaded parameters, followed by a line terminator.

Overload List

Writes a line terminator to the text stream.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Overridable Sub WriteLine()
[C#] public virtual void WriteLine();
[C++] public: virtual void WriteLine();
[JScript] public function WriteLine();

Writes the text representation of a Boolean followed by a line terminator to the text stream.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Overridable Sub WriteLine(Boolean)
[C#] public virtual void WriteLine(bool);
[C++] public: virtual void WriteLine(bool);
[JScript] public function WriteLine(Boolean);

Writes a character followed by a line terminator to the text stream.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Overridable Sub WriteLine(Char)
[C#] public virtual void WriteLine(char);
[C++] public: virtual void WriteLine(__wchar_t);
[JScript] public function WriteLine(Char);

Writes an array of characters followed by a line terminator to the text stream.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Overridable Sub WriteLine(Char())
[C#] public virtual void WriteLine(char[]);
[C++] public: virtual void WriteLine(__wchar_t __gc[]);
[JScript] public function WriteLine(Char[]);

Writes the text representation of a decimal value followed by a line terminator to the text stream.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Overridable Sub WriteLine(Decimal)
[C#] public virtual void WriteLine(decimal);
[C++] public: virtual void WriteLine(Decimal);
[JScript] public function WriteLine(Decimal);

Writes the text representation of a 8-byte floating-point value followed by a line terminator to the text stream.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Overridable Sub WriteLine(Double)
[C#] public virtual void WriteLine(double);
[C++] public: virtual void WriteLine(double);
[JScript] public function WriteLine(double);

Writes the text representation of a 4-byte signed integer followed by a line terminator to the text stream.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Overridable Sub WriteLine(Integer)
[C#] public virtual void WriteLine(int);
[C++] public: virtual void WriteLine(int);
[JScript] public function WriteLine(int);

Writes the text representation of an 8-byte signed integer followed by a line terminator to the text stream.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Overridable Sub WriteLine(Long)
[C#] public virtual void WriteLine(long);
[C++] public: virtual void WriteLine(__int64);
[JScript] public function WriteLine(long);

Writes the text representation of an object by calling ToString on this object, followed by a line terminator to the text stream.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Overridable Sub WriteLine(Object)
[C#] public virtual void WriteLine(object);
[C++] public: virtual void WriteLine(Object*);
[JScript] public function WriteLine(Object);

Writes the text representation of a 4-byte floating-point value followed by a line terminator to the text stream.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Overridable Sub WriteLine(Single)
[C#] public virtual void WriteLine(float);
[C++] public: virtual void WriteLine(float);
[JScript] public function WriteLine(float);

Writes a string followed by a line terminator to the text stream.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Overridable Sub WriteLine(String)
[C#] public virtual void WriteLine(string);
[C++] public: virtual void WriteLine(String*);
[JScript] public function WriteLine(String);

Writes the text representation of a 4-byte unsigned integer followed by a line terminator to the text stream. This method is not CLS-compliant.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Overridable Sub WriteLine(UInt32)
[C#] public virtual void WriteLine(uint);
[C++] public: virtual void WriteLine(unsigned int);
[JScript] public function WriteLine(UInt32);

Writes the text representation of an 8-byte unsigned integer followed by a line terminator to the text stream. This method is not CLS-compliant.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Overridable Sub WriteLine(UInt64)
[C#] public virtual void WriteLine(ulong);
[C++] public: virtual void WriteLine(unsigned __int64);
[JScript] public function WriteLine(UInt64);

Writes out a formatted string and a new line, using the same semantics as Format.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Overridable Sub WriteLine(String, Object)
[C#] public virtual void WriteLine(string, object);
[C++] public: virtual void WriteLine(String*, Object*);
[JScript] public function WriteLine(String, Object);

Writes out a formatted string and a new line, using the same semantics as Format.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Overridable Sub WriteLine(String, ParamArray Object())
[C#] public virtual void WriteLine(string, params object[]);
[C++] public: virtual void WriteLine(String*, Object[]);
[JScript] public function WriteLine(String, Object[]);

Writes a subarray of characters followed by a line terminator to the text stream.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Overridable Sub WriteLine(Char(), Integer, Integer)
[C#] public virtual void WriteLine(char[], int, int);
[C++] public: virtual void WriteLine(__wchar_t __gc[], int, int);
[JScript] public function WriteLine(Char[], int, int);

Writes out a formatted string and a new line, using the same semantics as Format.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Overridable Sub WriteLine(String, Object, Object)
[C#] public virtual void WriteLine(string, object, object);
[C++] public: virtual void WriteLine(String*, Object*, Object*);
[JScript] public function WriteLine(String, Object, Object);

Writes out a formatted string and a new line, using the same semantics as Format.

[Visual Basic] Overloads Public Overridable Sub WriteLine(String, Object, Object, Object)
[C#] public virtual void WriteLine(string, object, object, object);
[C++] public: virtual void WriteLine(String*, Object*, Object*, Object*);
[JScript] public function WriteLine(String, Object, Object, Object);

See Also

TextWriter Class | TextWriter Members | System.IO Namespace

Show:
© 2014 Microsoft