ResetOccurrenceCount 方法
Resets the alert occurrence count back to zero.
命名空間: Microsoft.SqlServer.Management.Smo.Agent
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Sub ResetOccurrenceCount
'用途
Dim instance As Alert
instance.ResetOccurrenceCount()
public void ResetOccurrenceCount()
public:
void ResetOccurrenceCount()
member ResetOccurrenceCount : unit -> unit
public function ResetOccurrenceCount()
備註
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.