共用方式為


JobServer.IdleCpuDuration 屬性

Gets or sets the length of time in seconds that the processor must have to maintain the CPU idle percentage value before the processor is considered idle.

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

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase)> _
Public Property IdleCpuDuration As Integer 
    Get 
    Set
'用途
Dim instance As JobServer 
Dim value As Integer 

value = instance.IdleCpuDuration

instance.IdleCpuDuration = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)]
public int IdleCpuDuration { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase)]
public:
property int IdleCpuDuration {
    int get ();
    void set (int value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)>]
member IdleCpuDuration : int with get, set
function get IdleCpuDuration () : int 
function set IdleCpuDuration (value : int)

屬性值

型別:System.Int32
An Int32 value that specifies the time in seconds that the processor must have to maintain the CPU idle percentage value.

範例

使用 SQL Server Agent 排程自動管理工作

請參閱

參考

JobServer 類別

Microsoft.SqlServer.Management.Smo.Agent 命名空間

其他資源

自動化管理工作 (SQL Server Agent)

SQL Server Agent 預存程序 (Transact-SQL)