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

 

Writes the specified subarray of Unicode characters to the standard output stream.

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

[HostProtectionAttribute(SecurityAction.LinkDemand, UI = true)]
public static void Write(
	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.

UIPermission

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

.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: