Propriété ProcessorUtilization
Gets the processor utilization in percentage points.
Espace de noms : Microsoft.SqlServer.Management.Utility
Assembly : Microsoft.SqlServer.Management.Utility (en Microsoft.SqlServer.Management.Utility.dll)
Syntaxe
'Déclaration
<SfcPropertyAttribute(SfcPropertyFlags.Data)> _
Public ReadOnly Property ProcessorUtilization As Single
Get
'Utilisation
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
Valeur de propriété
Type : System. . :: . .Single
A Double value that specifies the processor utilization in percentage points.
Exemples
VC#
System.Console.WriteLine(computer.ProcessorUtilization);
VB
System.Console.WriteLine(computer.ProcessorUtilization)
PowerShell
Write-Host $computer.ProcessorUtilization