Process.StartTime 屬性

定義

取得相關聯進程啟動的時間。

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 函式時發生錯誤。

適用於