WriteLine Method (Char[], Int32, Int32)

Console.WriteLine Method (Char[], Int32, Int32)

 

Writes the specified subarray of Unicode characters, followed by the current line terminator, to the standard output stream.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

[HostProtectionAttribute(SecurityAction.LinkDemand, UI = true)]
public static void WriteLine(
	char[] buffer,
	int index,
	int count
)

Parameters

buffer
Type: System.Char[]

An array of Unicode characters.

index
Type: System.Int32

The starting position in buffer.

count
Type: System.Int32

The number of characters to write.

Exception Condition
ArgumentNullException

buffer is null.

ArgumentOutOfRangeException

index or count is less than zero.

ArgumentException

index plus count specify a position that is not within buffer.

IOException

An I/O error occurred.

This method writes count characters starting at position index of buffer to the standard output stream.

For more information about the line terminator, see the Remarks section of the WriteLine method that takes no parameters.

UIPermission

for modifying safe top-level windows and subwindows. Associated enumeration: UIPermissionWindow.SafeTopLevelWindows

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft