共用方式為


Alert.LastResponseDate 屬性

Gets or sets the date on which the alert last generated a response.

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

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property LastResponseDate As DateTime 
    Get 
    Set
'用途
Dim instance As Alert 
Dim value As DateTime 

value = instance.LastResponseDate

instance.LastResponseDate = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public DateTime LastResponseDate { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property DateTime LastResponseDate {
    DateTime get ();
    void set (DateTime value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member LastResponseDate : DateTime with get, set
function get LastResponseDate () : DateTime 
function set LastResponseDate (value : DateTime)

屬性值

型別:System.DateTime
A DateTime system object value that specifies the date and time of the last response generated by the alert.

範例

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

請參閱

參考

Alert 類別

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

其他資源

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

sp_add_alert (Transact-SQL)