System.Diagnostics.Process.Refresh Method

Discards any information about the associated process that has been cached inside the process component.

Syntax

public void Refresh ()

Remarks

After Process.Refresh is called, the first request for information about each property causes the process component to obtain a new value from the associated process.

When a System.Diagnostics.Process component is associated with a process resource, the property values of the System.Diagnostics.Process are immediately populated according to the status of the associated process. If the information about the associated process subsequently changes, those changes are not reflected in the System.Diagnostics.Process component's cached values. The System.Diagnostics.Process component is a snapshot of the process resource at the time they are associated. To view the current values for the associated process, call the Process.Refresh method.

Requirements

Namespace: System.Diagnostics
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0