Process.StartTime 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得相關聯進程啟動的時間。
public:
property DateTime StartTime { DateTime get(); };
[System.Runtime.Versioning.SupportedOSPlatform("maccatalyst")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public DateTime StartTime { get; }
public DateTime StartTime { get; }
[<System.Runtime.Versioning.SupportedOSPlatform("maccatalyst")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
member this.StartTime : DateTime
member this.StartTime : DateTime
Public ReadOnly Property StartTime As DateTime
屬性值
一個指示過程開始時間的物件。 若程序未執行,則拋出例外。
- 屬性
例外狀況
你正在嘗試存取遠端電腦上執行的程序的該 StartTime 屬性。 此特性僅適用於在本地電腦上執行的程序。
呼叫 Windows 函式時發生錯誤。