Alert.ResetOccurrenceCount Method

Resets the alert occurrence count back to zero.

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

Syntax

'Declaration
Public Sub ResetOccurrenceCount
'Usage
Dim instance As Alert

instance.ResetOccurrenceCount()
public void ResetOccurrenceCount()
public:
void ResetOccurrenceCount()
member ResetOccurrenceCount : unit -> unit
public function ResetOccurrenceCount()

Remarks

The ResetOccurrenceCount method:

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)