共用方式為


Server.ProcessorUsage 屬性

Gets an Int32 value that specifies the processor time used by the instance of the Database Engine.

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

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Expensive Or SfcPropertyFlags.Standalone)> _
Public ReadOnly Property ProcessorUsage As Integer 
    Get
'用途
Dim instance As Server 
Dim value As Integer 

value = instance.ProcessorUsage
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Expensive|SfcPropertyFlags.Standalone)]
public int ProcessorUsage { get; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Expensive|SfcPropertyFlags::Standalone)]
public:
property int ProcessorUsage {
    int get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Expensive|SfcPropertyFlags.Standalone)>]
member ProcessorUsage : int
function get ProcessorUsage () : int

屬性值

型別:System.Int32
An Int32 value that specifies the processor time used by the instance of the Database Engine.

請參閱

參考

Server 類別

Microsoft.SqlServer.Management.Smo 命名空間