Språk

Console.OpenStandardOutputHandle Metod

Definition

Hämtar standardutdatahandtaget.

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

Returer

En SafeFileHandle som representerar standardutdatahandtaget.

Attribut

Undantag

Den aktuella plattformen stöder inte åtkomst till standardutdatahandtaget.

Kommentarer

Det returnerade handtaget äger inte den underliggande resursen, så om du bortser från den stängs inte standardutdatahandtaget.

Gäller för