.NET Framework Class Library
Process Members

Provides access to local and remote processes and enables you to start and stop local system processes.

The Process type exposes the following members.

Constructors

  NameDescription
Public methodSupported by the .NET Compact FrameworkProcessInitializes a new instance of the Process class.
Top
Methods

  NameDescription
Public methodBeginErrorReadLineBegins asynchronous read operations on the redirected StandardError stream of the application.
Public methodBeginOutputReadLineBegins asynchronous read operations on the redirected StandardOutput stream of the application.
Public methodCancelErrorReadCancels the asynchronous read operation on the redirected StandardError stream of an application.
Public methodCancelOutputReadCancels the asynchronous read operation on the redirected StandardOutput stream of an application.
Public methodSupported by the .NET Compact FrameworkCloseFrees all the resources that are associated with this component.
Public methodSupported by the .NET Compact FrameworkCloseMainWindowCloses a process that has a user interface by sending a close message to its main window.
Public methodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public methodSupported by the .NET Compact FrameworkDisposeOverloaded.
Public methodStatic memberEnterDebugModePuts a Process component in state to interact with operating system processes that run in a special mode by enabling the native property SeDebugPrivilege on the current thread.
Public methodSupported by the .NET Compact FrameworkEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by the .NET Compact FrameworkFinalizeReleases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.)
Public methodStatic memberSupported by the .NET Compact FrameworkGetCurrentProcessGets a new Process component and associates it with the currently active process.
Public methodSupported by the .NET Compact FrameworkGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public methodStatic memberSupported by the .NET Compact FrameworkGetProcessByIdOverloaded. Creates a new Process component, and associates it with the existing process resource that you specify.
Public methodStatic memberGetProcessesOverloaded. Creates an array of new Process components and associates them with existing process resources.
Public methodStatic memberGetProcessesByNameOverloaded. Creates an array of new Process components and associates them with the existing process resources that all share the specified process name.
Protected methodGetServiceReturns an object that represents a service provided by the Component or by its Container. (Inherited from Component.)
Public methodSupported by the .NET Compact FrameworkGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public methodSupported by the .NET Compact FrameworkKillImmediately stops the associated process.
Public methodStatic memberLeaveDebugModeTakes a Process component out of the state that lets it interact with operating system processes that run in a special mode.
Protected methodSupported by the .NET Compact FrameworkMemberwiseCloneOverloaded.
Protected methodSupported by the .NET Compact FrameworkOnExitedRaises the Exited event.
Public methodSupported by the .NET Compact FrameworkRefreshDiscards any information about the associated process that has been cached inside the process component.
Public methodStatic memberSupported by the .NET Compact FrameworkStartOverloaded. Starts a process resource and associates it with a Process component.
Public methodSupported by the .NET Compact FrameworkToStringOverloaded.
Public methodSupported by the .NET Compact FrameworkWaitForExitOverloaded. Sets the period of time to wait for the associated process to exit, and blocks the current thread of execution until the time has elapsed or the process has exited.
Public methodWaitForInputIdleOverloaded. Causes the Process component to wait for the associated process to enter an idle state.
Top
Properties

  NameDescription
Public propertyBasePriorityGets the base priority of the associated process.
Protected propertyCanRaiseEventsGets a value indicating whether the component can raise an event. (Inherited from Component.)
Public propertyContainerGets the IContainer that contains the Component. (Inherited from Component.)
Protected propertyDesignModeGets a value that indicates whether the Component is currently in design mode. (Inherited from Component.)
Public propertySupported by the .NET Compact FrameworkEnableRaisingEventsGets or sets whether the Exited event should be raised when the process terminates.
Protected propertySupported by the .NET Compact FrameworkEventsGets the list of event handlers that are attached to this Component. (Inherited from Component.)
Public propertySupported by the .NET Compact FrameworkExitCodeGets the value that the associated process specified when it terminated.
Public propertyExitTimeGets the time that the associated process exited.
Public propertyHandleGets the native handle of the associated process.
Public propertyHandleCountGets the number of handles opened by the process.
Public propertySupported by the .NET Compact FrameworkHasExitedGets a value indicating whether the associated process has been terminated.
Public propertySupported by the .NET Compact FrameworkIdGets the unique identifier for the associated process.
Public propertyMachineNameGets the name of the computer the associated process is running on.
Public propertyMainModuleGets the main module for the associated process.
Public propertySupported by the .NET Compact FrameworkMainWindowHandleGets the window handle of the main window of the associated process.
Public propertyMainWindowTitleGets the caption of the main window of the process.
Public propertyMaxWorkingSetGets or sets the maximum allowable working set size for the associated process.
Public propertyMinWorkingSetGets or sets the minimum allowable working set size for the associated process.
Public propertyModulesGets the modules that have been loaded by the associated process.
Public propertyNonpagedSystemMemorySize Obsolete. Gets the nonpaged system memory size allocated to this process.
Public propertyNonpagedSystemMemorySize64Gets the amount of nonpaged system memory allocated for the associated process.
Public propertyPagedMemorySize Obsolete. Gets the paged memory size.
Public propertyPagedMemorySize64Gets the amount of paged memory allocated for the associated process.
Public propertyPagedSystemMemorySize Obsolete. Gets the paged system memory size.
Public propertyPagedSystemMemorySize64Gets the amount of pageable system memory allocated for the associated process.
Public propertyPeakPagedMemorySize Obsolete. Gets the peak paged memory size.
Public propertyPeakPagedMemorySize64Gets the maximum amount of memory in the virtual memory paging file used by the associated process.
Public propertyPeakVirtualMemorySize Obsolete. Gets the peak virtual memory size.
Public propertyPeakVirtualMemorySize64Gets the maximum amount of virtual memory used by the associated process.
Public propertyPeakWorkingSet Obsolete. Gets the peak working set size for the associated process.
Public propertyPeakWorkingSet64Gets the maximum amount of physical memory used by the associated process.
Public propertyPriorityBoostEnabledGets or sets a value indicating whether the associated process priority should temporarily be boosted by the operating system when the main window has the focus.
Public propertyPriorityClassGets or sets the overall priority category for the associated process.
Public propertyPrivateMemorySize Obsolete. Gets the private memory size.
Public propertyPrivateMemorySize64Gets the amount of private memory allocated for the associated process.
Public propertyPrivilegedProcessorTimeGets the privileged processor time for this process.
Public propertyProcessNameGets the name of the process.
Public propertyProcessorAffinityGets or sets the processors on which the threads in this process can be scheduled to run.
Public propertySupported by the .NET Compact FrameworkRespondingGets a value indicating whether the user interface of the process is responding.
Public propertySessionIdGets the Terminal Services session identifier for the associated process.
Public propertySupported by the .NET Compact FrameworkSiteGets or sets the ISite of the Component. (Inherited from Component.)
Public propertyStandardErrorGets a stream used to read the error output of the application.
Public propertyStandardInputGets a stream used to write the input of the application.
Public propertyStandardOutputGets a stream used to read the output of the application.
Public propertySupported by the .NET Compact FrameworkStartInfoGets or sets the properties to pass to the Start method of the Process.
Public propertyStartTimeGets the time that the associated process was started.
Public propertySynchronizingObjectGets or sets the object used to marshal the event handler calls that are issued as a result of a process exit event.
Public propertyThreadsGets the set of threads that are running in the associated process.
Public propertyTotalProcessorTimeGets the total processor time for this process.
Public propertyUserProcessorTimeGets the user processor time for this process.
Public propertyVirtualMemorySize Obsolete. Gets the size of the process's virtual memory.
Public propertyVirtualMemorySize64Gets the amount of the virtual memory allocated for the associated process.
Public propertyWorkingSet Obsolete. Gets the associated process's physical memory usage.
Public propertyWorkingSet64Gets the amount of physical memory allocated for the associated process.
Top
Events

  NameDescription
Public eventSupported by the .NET Compact FrameworkDisposedOccurs when the component is disposed by a call to the Dispose method. (Inherited from Component.)
Public eventErrorDataReceivedOccurs when an application writes to its redirected StandardError stream.
Public eventSupported by the .NET Compact FrameworkExitedOccurs when a process exits.
Public eventOutputDataReceivedOccurs when an application writes to its redirected StandardOutput stream.
Top
See Also

Reference

Tags :


Page view tracker