共用方式為


JobHistoryFilter.SqlSeverity 屬性

Gets or sets the job filter constraint that restricts the values returned by the JobServer object's EnumJobHistory method to jobs that have generated an error of the specified severity during execution.

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

語法

'宣告
Public Property SqlSeverity As Integer 
    Get 
    Set
'用途
Dim instance As JobHistoryFilter 
Dim value As Integer 

value = instance.SqlSeverity

instance.SqlSeverity = value
public int SqlSeverity { get; set; }
public:
property int SqlSeverity {
    int get ();
    void set (int value);
}
member SqlSeverity : int with get, set
function get SqlSeverity () : int 
function set SqlSeverity (value : int)

屬性值

型別:System.Int32
An Int32 value that specifies the severity of the error that occurred during the execution of the job.

備註

The job history filter can be used to restrict the list returned by the JobServer object's EnumJobHistory method to jobs.

範例

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

請參閱

參考

JobHistoryFilter 類別

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

其他資源

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