NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Process.Refresh

Discards any information about the associated process that has been cached inside the process component. After Refresh is called, the first request for information for each property causes the process component to obtain a new value from the associated process.

[Visual Basic]
Public Sub Refresh()
[C#]
public void Refresh();
[C++]
public: void Refresh();
[JScript]
public function Refresh();

Remarks

When a Process component is associated with a process resource, the property values of the Process are immediately populated according to the status of the associated process. If the information of the associated process subsequently changes, those changes are not reflected in the Process component's cached values. The 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 Refresh method.

See Also

Process Class | Process Members | System.Diagnostics Namespace