Process.StartTime 屬性

定義

取得相關的處理序啟動的時間。

public:
 property DateTime StartTime { DateTime get(); };
public DateTime StartTime { get; }
[System.Runtime.Versioning.SupportedOSPlatform("maccatalyst")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public DateTime StartTime { get; }
member this.StartTime : DateTime
[<System.Runtime.Versioning.SupportedOSPlatform("maccatalyst")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
member this.StartTime : DateTime
Public ReadOnly Property StartTime As DateTime

屬性值

物件,指出進程何時啟動。 如果處理序並未執行,則會擲回例外狀況。

屬性

例外狀況

您正在嘗試存取於遠端電腦上執行之處理序的 StartTime 屬性。 這個屬性僅供在本機電腦執行的處理序使用。

處理序已經結束。

-或-

尚未啟動處理序。

呼叫 Windows 函式時發生錯誤。

適用於