Process.StartTime Property

Definition

Gets the time that the associated process was started.

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

Property Value

An object that indicates when the process started. An exception is thrown if the process is not running.

Exceptions

You are attempting to access the StartTime property for a process that is running on a remote computer. This property is available only for processes that are running on the local computer.

The process has exited.

-or-

The process has not been started.

An error occurred in the call to the Windows function.

Security

LinkDemand
for full trust for the immediate caller. This member cannot be used by partially trusted code.

Applies to