Sdílet prostřednictvím


WebProcessStatistics.ProcessStartTime Vlastnost

Definice

Získá čas, kdy se proces spustil.

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

Hodnota vlastnosti

DateTime

Při DateTime spuštění procesu.

Příklady

Následující příklad kódu ukazuje, jak získat ProcessStartTime hodnotu.

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

Platí pro