Share via


Computer.ProcessorUtilization Property

Gets the processor utilization in percentage points.

Namespace:  Microsoft.SqlServer.Management.Utility
Assembly:  Microsoft.SqlServer.Management.Utility (in Microsoft.SqlServer.Management.Utility.dll)

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.Data)> _
Public ReadOnly Property ProcessorUtilization As Single 
    Get
'Usage
Dim instance As Computer 
Dim value As Single 

value = instance.ProcessorUtilization
[SfcPropertyAttribute(SfcPropertyFlags.Data)]
public float ProcessorUtilization { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Data)]
public:
property float ProcessorUtilization {
    float get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Data)>]
member ProcessorUtilization : float32
function get ProcessorUtilization () : float

Property Value

Type: System.Single
A Double value that specifies the processor utilization in percentage points.

Examples

VC#

System.Console.WriteLine(computer.ProcessorUtilization);

VB

System.Console.WriteLine(computer.ProcessorUtilization)

PowerShell

Write-Host $computer.ProcessorUtilization 

See Also

Reference

Computer Class

Microsoft.SqlServer.Management.Utility Namespace