共用方式為


ProcessorUtilization 屬性

Gets the processor utilization in percentage points.

命名空間:  Microsoft.SqlServer.Management.Utility
組件:  Microsoft.SqlServer.Management.Utility (在 Microsoft.SqlServer.Management.Utility.dll 中)

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Data)> _
Public ReadOnly Property ProcessorUtilization As Single
    Get
'用途
Dim instance As DeployedDac
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

屬性值

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

範例

VC#

System.Console.WriteLine(deployedDac.ProcessorUtilization);

VB

System.Console.WriteLine(deployedDac.ProcessorUtilization)

PowerShell

Write-Host $deployedDac.ProcessorUtilization