共用方式為


JobServer.MaximumJobHistoryRows 屬性

Gets or sets the maximum number of history rows retained per job.

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

語法

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

value = instance.MaximumJobHistoryRows

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

屬性值

型別:System.Int32
An Int32 value that specifies the maximum number of history rows retained per job.

範例

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

請參閱

參考

JobServer 類別

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

其他資源

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

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