ProcessDiagnosticInfo
ProcessDiagnosticInfo
ProcessDiagnosticInfo
ProcessDiagnosticInfo
Class
Definition
Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Prerelease APIs are identified by a Prerelease label.
[Contains prerelease APIs.]
Provides diagnostic information about a process, such as CPU usage, disk usage, memory usage and so on.
public : sealed class ProcessDiagnosticInfo : IProcessDiagnosticInfo, IProcessDiagnosticInfo2public sealed class ProcessDiagnosticInfo : IProcessDiagnosticInfo, IProcessDiagnosticInfo2Public NotInheritable Class ProcessDiagnosticInfo Implements IProcessDiagnosticInfo, IProcessDiagnosticInfo2// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Properties
CpuUsage CpuUsage CpuUsage CpuUsage
Gets the CPU time used by the process.
public : ProcessCpuUsage CpuUsage { get; }public ProcessCpuUsage CpuUsage { get; }Public ReadOnly Property CpuUsage As ProcessCpuUsage// You can use this property in JavaScript.
The CPU time used by the process.
DiskUsage DiskUsage DiskUsage DiskUsage
Gets the disk I/O usage of the process.
public : ProcessDiskUsage DiskUsage { get; }public ProcessDiskUsage DiskUsage { get; }Public ReadOnly Property DiskUsage As ProcessDiskUsage// You can use this property in JavaScript.
The disk I/O usage of the process.
ExecutableFileName ExecutableFileName ExecutableFileName ExecutableFileName
Gets the name of the executable file for the process.
public : PlatForm::String ExecutableFileName { get; }public string ExecutableFileName { get; }Public ReadOnly Property ExecutableFileName As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The name of the executable file for the process.
IsPackaged IsPackaged IsPackaged IsPackaged
Prerelease. Gets a Boolean value indicating whether or not this ProcessDiagnosticInfo instance has any related UWP information.
public : PlatForm::Boolean IsPackaged { get; }public bool IsPackaged { get; }Public ReadOnly Property IsPackaged As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
A Boolean value indicating whether or not this ProcessDiagnosticInfo instance has any related UWP information.
| Device family |
Windows 10 Insider Preview (introduced v10.0.16257.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v5)
|
MemoryUsage MemoryUsage MemoryUsage MemoryUsage
Gets memory usage data for the process.
public : ProcessMemoryUsage MemoryUsage { get; }public ProcessMemoryUsage MemoryUsage { get; }Public ReadOnly Property MemoryUsage As ProcessMemoryUsage// You can use this property in JavaScript.
Memory usage data for the process.
Parent Parent Parent Parent
Gets the ProcessDiagnosticInfo for the parent process.
public : ProcessDiagnosticInfo Parent { get; }public ProcessDiagnosticInfo Parent { get; }Public ReadOnly Property Parent As ProcessDiagnosticInfo// You can use this property in JavaScript.
The ProcessDiagnosticInfo for the parent process.
ProcessId ProcessId ProcessId ProcessId
Gets the unique process ID.
public : unsigned int ProcessId { get; }public uint ProcessId { get; }Public ReadOnly Property ProcessId As uint// You can use this property in JavaScript.
- Value
- unsigned int uint uint uint
The unique process ID.
ProcessStartTime ProcessStartTime ProcessStartTime ProcessStartTime
Gets the time the process was started.
public : DateTime ProcessStartTime { get; }public DateTimeOffset ProcessStartTime { get; }Public ReadOnly Property ProcessStartTime As DateTimeOffset// You can use this property in JavaScript.
- Value
- DateTime DateTimeOffset DateTimeOffset DateTimeOffset
The time the process was started.
Methods
GetAppDiagnosticInfos() GetAppDiagnosticInfos() GetAppDiagnosticInfos() GetAppDiagnosticInfos()
Prerelease. Gets one or more AppDiagnosticInfo objects if the IsPackaged property is true.
public : IVector<AppDiagnosticInfo> GetAppDiagnosticInfos()public IList<AppDiagnosticInfo> GetAppDiagnosticInfos()Public Function GetAppDiagnosticInfos() As IList( Of AppDiagnosticInfo )// You can use this method in JavaScript.
Returns one or more AppDiagnosticInfo objects.
| Device family |
Windows 10 Insider Preview (introduced v10.0.16257.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v5)
|
GetForCurrentProcess() GetForCurrentProcess() GetForCurrentProcess() GetForCurrentProcess()
Gets the ProcessDiagnosticInfo for the currently running process.
public : static ProcessDiagnosticInfo GetForCurrentProcess()public static ProcessDiagnosticInfo GetForCurrentProcess()Public Static Function GetForCurrentProcess() As ProcessDiagnosticInfo// You can use this method in JavaScript.
The ProcessDiagnosticInfo for the currently running process.
GetForProcesses() GetForProcesses() GetForProcesses() GetForProcesses()
Gets a list of ProcessDiagnosticInfo objects for all running processes that are accessible to the caller.
public : static IVectorView<ProcessDiagnosticInfo> GetForProcesses()public static IReadOnlyList<ProcessDiagnosticInfo> GetForProcesses()Public Static Function GetForProcesses() As IReadOnlyList( Of ProcessDiagnosticInfo )// You can use this method in JavaScript.
A list of ProcessDiagnosticInfo objects for all running processes.
Remarks
For UWP apps, processes must be in the same AppContainer.
TryGetForProcessId(UInt32) TryGetForProcessId(UInt32) TryGetForProcessId(UInt32) TryGetForProcessId(UInt32)
Prerelease. Gets a ProcessDiagnosticInfo object for the specified process.
public : static ProcessDiagnosticInfo TryGetForProcessId(unsigned int processId)public static ProcessDiagnosticInfo TryGetForProcessId(UInt32 processId)Public Static Function TryGetForProcessId(processId As UInt32) As ProcessDiagnosticInfo// You can use this method in JavaScript.
- processId
- unsigned int UInt32 UInt32 UInt32
The identifier of the process for which to retrieve a ProcessDiagnosticInfo object.
| Device family |
Windows 10 Insider Preview (introduced v10.0.16257.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v5)
|