語言

Console.OpenStandardInputHandle 方法

定義

會用標準輸入把手。

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

傳回

A SafeFileHandle 代表標準輸入把柄。

屬性

例外狀況

目前平台不支援存取標準輸入的 handle。

備註

回傳的 handle 並不擁有底層資源,因此丟棄它並不會關閉標準輸入 handle 。

適用於