다음을 통해 공유


CountResetDate 속성

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

네임스페이스:  Microsoft.SqlServer.Management.Smo.Agent
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)

구문

‘선언
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property CountResetDate As DateTime
    Get
‘사용 방법
Dim instance As Alert
Dim value As DateTime

value = instance.CountResetDate
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public DateTime CountResetDate { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property DateTime CountResetDate {
    DateTime get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member CountResetDate : DateTime
function get CountResetDate () : DateTime

속성 값

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

주의

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.