Propriété Alert.LastOccurrenceDate
Gets or sets the date on which the alert was last raised.
Espace de noms : Microsoft.SqlServer.Management.Smo.Agent
Assembly : Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property LastOccurrenceDate As DateTime
Get
Set
'Utilisation
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)
Valeur de propriété
Type : System.DateTime
A DateTime system object value that specifies the date and time that the alert was last raised.
Notes
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.
Exemples
Planification des tâches administratives automatiques dans l'Agent SQL Server
Voir aussi
Référence
Espace de noms Microsoft.SqlServer.Management.Smo.Agent