共用方式為


WebProcessStatistics.ProcessStartTime 屬性

定義

取得處理序啟動的時間。

public:
 property DateTime ProcessStartTime { DateTime get(); };
public DateTime ProcessStartTime { get; }
member this.ProcessStartTime : DateTime
Public ReadOnly Property ProcessStartTime As DateTime

屬性值

DateTime

代表處理序啟動時間的 DateTime

範例

下列程式碼範例示範如何取得 ProcessStartTime 值。

public string GetProcessStartTime()
{
    // Get the process start time.
    return (string.Format(
        "Process start time: {0}",
        processStatistics.ProcessStartTime.ToString()));
}
Public Function GetProcessStartTime() As String
    ' Get the process start time.
    Return String.Format( _
    "Process start time: {0}", _
    processStatistics.ProcessStartTime.ToString())
End Function 'GetProcessStartTime

適用於