Sprog

Console.OpenStandardOutputHandle Method

Definition

Gets the standard output handle.

public:
 static Microsoft::Win32::SafeHandles::SafeFileHandle ^ OpenStandardOutputHandle();
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public static Microsoft.Win32.SafeHandles.SafeFileHandle OpenStandardOutputHandle();
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
static member OpenStandardOutputHandle : unit -> Microsoft.Win32.SafeHandles.SafeFileHandle
Public Shared Function OpenStandardOutputHandle () As SafeFileHandle

Returns

A SafeFileHandle representing the standard output handle.

Attributes

Exceptions

The current platform doesn't support accessing the standard output handle.

Remarks

The returned handle doesn't own the underlying resource, so disposing it doesn't close the standard output handle.

Applies to