Share via


Alert.LastResponseDate Property

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

Namespace:  Microsoft.SqlServer.Management.Smo.Agent
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property LastResponseDate As DateTime 
    Get 
    Set
'Usage
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)

Property Value

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

Examples

Scheduling Automatic Administrative Tasks in SQL Server Agent

See Also

Reference

Alert Class

Microsoft.SqlServer.Management.Smo.Agent Namespace

Other Resources

Automated Administration Tasks (SQL Server Agent)

sp_add_alert (Transact-SQL)