Computer.ProcessorUtilization Propiedad
Gets the processor utilization in percentage points.
Espacio de nombres: Microsoft.SqlServer.Management.Utility
Ensamblado: Microsoft.SqlServer.Management.Utility (en Microsoft.SqlServer.Management.Utility.dll)
Sintaxis
'Declaración
<SfcPropertyAttribute(SfcPropertyFlags.Data)> _
Public ReadOnly Property ProcessorUtilization As Single
Get
'Uso
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
Valor de la propiedad
Tipo: System.Single
A Double value that specifies the processor utilization in percentage points.
Ejemplos
VC#
System.Console.WriteLine(computer.ProcessorUtilization);
VB
System.Console.WriteLine(computer.ProcessorUtilization)
PowerShell
Write-Host $computer.ProcessorUtilization