Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Console::Write Method (array<Char>^, Int32, Int32)

 

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

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

public:
[HostProtectionAttribute(SecurityAction::LinkDemand, UI = true)]
static void Write(
	array<wchar_t>^ buffer,
	int index,
	int count
)

Parameters

buffer
Type: array<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:
© 2017 Microsoft