Właściwość OccurrenceCount
Pobiera numer razy alert jest uruchamiany od czasu włączenia alert lub od określonej data.
Przestrzeń nazw: Microsoft.SqlServer.Management.Smo.Agent
Zestaw: Microsoft.SqlServer.Smo (w Microsoft.SqlServer.Smo.dll)
Syntax
'Deklaracja
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property OccurrenceCount As Integer
Get
'Użycie
Dim instance As Alert
Dim value As Integer
value = instance.OccurrenceCount
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public int OccurrenceCount { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property int OccurrenceCount {
int get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member OccurrenceCount : int
function get OccurrenceCount () : int
Wartość właściwości
Typ: System. . :: . .Int32
Int32 Wartość określająca ile razy alert jest uruchamiany od czasu włączenia alertu lub od określonej data.
Uwagi
CountResetDate Właściwość oznacza data i czas rozpoczęcia inwentaryzacji dla SQL Server Agent alert wystąpienia licznika.Użyj ResetOccurrenceCount metodę zestaw liczba alertów wystąpienie do zera.
Zobacz także