Alert.ResetOccurrenceCount Método
Resets the alert occurrence count back to zero.
Espacio de nombres: Microsoft.SqlServer.Management.Smo.Agent
Ensamblado: Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Sintaxis
'Declaración
Public Sub ResetOccurrenceCount
'Uso
Dim instance As Alert
instance.ResetOccurrenceCount()
public void ResetOccurrenceCount()
public:
void ResetOccurrenceCount()
member ResetOccurrenceCount : unit -> unit
public function ResetOccurrenceCount()
Comentarios
The ResetOccurrenceCount method:
Sets the OccurrenceCount property to 0.
Sets the date and time that specifies the start of counting to the current date and time in the LastOccurrenceDate and CountResetDate properties.
Ejemplos
Programar tareas administrativas automáticas en el Agente SQL Server
Vea también
Referencia
Espacio de nombres Microsoft.SqlServer.Management.Smo.Agent