Udostępnij za pośrednictwem


Alert.CountResetDate Property

Gets or sets the date on which to reset the alert occurrence count back to zero.

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

Syntax

'Deklaracja
<SfcPropertyAttribute> _
Public ReadOnly Property CountResetDate As DateTime
[SfcPropertyAttribute] 
public DateTime CountResetDate { get; }
[SfcPropertyAttribute] 
public:
property DateTime CountResetDate {
    DateTime get ();
}
/** @property */
public DateTime get_CountResetDate ()
public function get CountResetDate () : DateTime

Property Value

A DateTime object value that specifies the date on which to set the event occurrence count back to zero.

Remarks

The SQL Server Agent alert occurrence count represents the number of times the alert has fired after a specific date and time. The CountResetDate property is used to specify a date and time. Use the ResetOccurrenceCount method to set the occurrence count to 0 and set the CountResetDate property to the current date and time.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.