Export (0) Print
Expand All

Process Members

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

The following tables list the members exposed by the Process type.

  Name Description
Public method Supported by the .NET Compact Framework Process Initializes a new instance of the Process class.
Top

(see also Protected Properties )
  Name Description
Public property BasePriority Gets the base priority of the associated process.
Public property Container  Gets the IContainer that contains the Component.(inherited from Component)
Public property Supported by the .NET Compact Framework EnableRaisingEvents Gets or sets whether the Exited event should be raised when the process terminates.
Public property Supported by the .NET Compact Framework ExitCode Gets the value that the associated process specified when it terminated.
Public property ExitTime Gets the time that the associated process exited.
Public property Handle Gets the associated process's native handle.
Public property HandleCount Gets the number of handles opened by the process.
Public property Supported by the .NET Compact Framework HasExited Gets a value indicating whether the associated process has been terminated.
Public property Supported by the .NET Compact Framework Id Gets the unique identifier for the associated process.
Public property MachineName Gets the name of the computer the associated process is running on.
Public property MainModule Gets the main module for the associated process.
Public property Supported by the .NET Compact Framework MainWindowHandle Gets the window handle of the main window of the associated process.
Public property MainWindowTitle Gets the caption of the main window of the process.
Public property MaxWorkingSet Gets or sets the maximum allowable working set size for the associated process.
Public property MinWorkingSet Gets or sets the minimum allowable working set size for the associated process.
Public property Modules Gets the modules that have been loaded by the associated process.
Public property NonpagedSystemMemorySize Gets the nonpaged system memory size allocated to this process.
Public property NonpagedSystemMemorySize64 Gets the amount of nonpaged system memory allocated for the associated process.
Public property PagedMemorySize Gets the paged memory size.
Public property PagedMemorySize64 Gets the amount of paged memory allocated for the associated process.
Public property PagedSystemMemorySize Gets the paged system memory size.
Public property PagedSystemMemorySize64 Gets the amount of pageable system memory allocated for the associated process.
Public property PeakPagedMemorySize Gets the peak paged memory size.
Public property PeakPagedMemorySize64 Gets the maximum amount of memory in the virtual memory paging file used by the associated process.
Public property PeakVirtualMemorySize Gets the peak virtual memory size.
Public property PeakVirtualMemorySize64 Gets the maximum amount of virtual memory used by the associated process.
Public property PeakWorkingSet Gets the peak working set size for the associated process.
Public property PeakWorkingSet64 Gets the maximum amount of physical memory used by the associated process.
Public property PriorityBoostEnabled Gets 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 property PriorityClass Gets or sets the overall priority category for the associated process.
Public property PrivateMemorySize Gets the private memory size.
Public property PrivateMemorySize64 Gets the amount of private memory allocated for the associated process.
Public property PrivilegedProcessorTime Gets the privileged processor time for this process.
Public property ProcessName Gets the name of the process.
Public property ProcessorAffinity Gets or sets the processors on which the threads in this process can be scheduled to run.
Public property Supported by the .NET Compact Framework Responding Gets a value indicating whether the user interface of the process is responding.
Public property SessionId Gets the Terminal Services session identifier for the associated process.
Public property Supported by the .NET Compact Framework Site  Gets or sets the ISite of the Component.(inherited from Component)
Public property StandardError Gets a stream used to read the error output of the application.
Public property StandardInput Gets a stream used to write the input of the application.
Public property StandardOutput Gets a stream used to read the output of the application.
Public property Supported by the .NET Compact Framework StartInfo Gets or sets the properties to pass to the Start method of the Process.
Public property StartTime Gets the time that the associated process was started.
Public property SynchronizingObject Gets or sets the object used to marshal the event handler calls that are issued as a result of a process exit event.
Public property Threads Gets the set of threads that are running in the associated process.
Public property TotalProcessorTime Gets the total processor time for this process.
Public property UserProcessorTime Gets the user processor time for this process.
Public property VirtualMemorySize Gets the size of the process's virtual memory.
Public property VirtualMemorySize64 Gets the amount of the virtual memory allocated for the associated process.
Public property WorkingSet Gets the associated process's physical memory usage.
Public property WorkingSet64 Gets the amount of physical memory allocated for the associated process.
Top

  Name Description
Protected property CanRaiseEvents  Gets a value indicating whether the component can raise an event.(inherited from Component)
Protected property DesignMode  Gets a value that indicates whether the Component is currently in design mode.(inherited from Component)
Protected property Supported by the .NET Compact Framework Events  Gets the list of event handlers that are attached to this Component.(inherited from Component)
Top

(see also Protected Methods )
  Name Description
Public method BeginErrorReadLine Begins asynchronous read operations on the redirected StandardError stream of the application.
Public method BeginOutputReadLine Begins asynchronous read operations on the redirected StandardOutput stream of the application.
Public method CancelErrorRead Cancels the asynchronous read operation on the redirected StandardError stream of an application.
Public method CancelOutputRead Cancels the asynchronous read operation on the redirected StandardOutput stream of an application.
Public method Supported by the .NET Compact Framework Close Frees all the resources that are associated with this component.
Public method Supported by the .NET Compact Framework CloseMainWindow Closes a process that has a user interface by sending a close message to its main window.
Public method CreateObjRef  Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (inherited from MarshalByRefObject)
Public method Supported by the .NET Compact Framework Dispose Overloaded.  
Public method Static EnterDebugMode Puts 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 method Supported by the .NET Compact Framework Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method Static Supported by the .NET Compact Framework GetCurrentProcess Gets a new Process component and associates it with the currently active process.
Public method Supported by the .NET Compact Framework GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetLifetimeService  Retrieves the current lifetime service object that controls the lifetime policy for this instance. (inherited from MarshalByRefObject)
Public method Static Supported by the .NET Compact Framework GetProcessById Overloaded. Creates a new Process component, and associates it with the existing process resource that you specify.
Public method Static GetProcesses Overloaded. Creates an array of new Process components and associates them with existing process resources.
Public method Static GetProcessesByName Overloaded. Creates an array of new Process components and associates them with the existing process resources that all share the specified process name.
Public method Supported by the .NET Compact Framework GetType  Gets the Type of the current instance. (inherited from Object)
Public method InitializeLifetimeService  Obtains a lifetime service object to control the lifetime policy for this instance. (inherited from MarshalByRefObject)
Public method Supported by the .NET Compact Framework Kill Immediately stops the associated process.
Public method Static LeaveDebugMode Takes a Process component out of the state that lets it interact with operating system processes that run in a special mode.
Public method Static Supported by the .NET Compact Framework ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method Supported by the .NET Compact Framework Refresh Discards any information about the associated process that has been cached inside the process component.
Public method Supported by the .NET Compact Framework Start Overloaded. Starts a process resource and associates it with a Process component.
Public method Supported by the .NET Compact Framework ToString Overridden. Formats the process's name as a string, combined with the parent component type, if applicable.
Public method Supported by the .NET Compact Framework WaitForExit Overloaded. 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 method WaitForInputIdle Overloaded. Causes the Process component to wait for the associated process to enter an idle state.
Top

  Name Description
Protected method Supported by the .NET Compact Framework Dispose Overloaded. Overridden.  
Protected method Supported by the .NET Compact Framework Finalize  Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (inherited from Component)
Protected method GetService  Returns an object that represents a service provided by the Component or by its Container. (inherited from Component)
Protected method Supported by the .NET Compact Framework MemberwiseClone  Overloaded. (inherited from MarshalByRefObject)
Protected method Supported by the .NET Compact Framework OnExited Raises the Exited event.
Top

  Name Description
Public event Supported by the .NET Compact Framework Disposed  Occurs when the component is disposed by a call to the Dispose method. (inherited from Component)
Public event ErrorDataReceived Occurs when an application writes to its redirected StandardError stream.
Public event Supported by the .NET Compact Framework Exited Occurs when a process exits.
Public event OutputDataReceived Occurs when an application writes to its redirected StandardOutput stream.
Top

Community Additions

ADD
Show:
© 2014 Microsoft