Compartir a través de


Alert.LastOccurrenceDate Propiedad

Gets or sets the date on which the alert was last raised.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo.Agent
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property LastOccurrenceDate As DateTime 
    Get 
    Set
'Uso
Dim instance As Alert 
Dim value As DateTime 

value = instance.LastOccurrenceDate

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

Valor de la propiedad

Tipo: System.DateTime
A DateTime system object value that specifies the date and time that the alert was last raised.

Comentarios

SQL Server Agent maintains historical data for alerts raised and handled by SQL Server Agent. The date of last occurrence is one piece of historical information maintained.

Ejemplos

Programar tareas administrativas automáticas en el Agente SQL Server

Vea también

Referencia

Alert Clase

Espacio de nombres Microsoft.SqlServer.Management.Smo.Agent

Otros recursos

Tareas administrativas automatizadas (Agente SQL Server)

sp_add_alert (Transact-SQL)