Classe AlertCategory
The AlertCategory class contains attributes that allow alerts to be categorized.
Spazio dei nomi: Microsoft.SqlServer.Management.Smo.Agent
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Sintassi
'Dichiarazione
Public NotInheritable Class AlertCategory _
Inherits CategoryBase
'Utilizzo
Dim instance As AlertCategory
public sealed class AlertCategory : CategoryBase
public ref class AlertCategory sealed : public CategoryBase
[<SealedAttribute>]
type AlertCategory =
class
inherit CategoryBase
end
public final class AlertCategory extends CategoryBase
Osservazioni
SQL Server Agent categories provide optional attributes that are used to distinguish groups of alerts.
With the AlertCategory object, you can:
- Create groupings for alerts.
The category name must be unique.
To get AlertCategory object properties, users must be a member of SQLAgentUserRole database role on the MSDB database or be a member of the sysadmin fixed server role.
To set AlertCategory object properties, users must be a member of the sysadmin fixed server role.
To create or drop an alert category, users must be a member of the sysadmin fixed server role.
Thread Safety
Tutti i membri statici pubblici (Shared in Microsoft Visual Basic) di questo tipo sono sicuri per le operazioni a thread multipli. Non è invece garantita la sicurezza dei membri dell'istanza.
Gerarchia di ereditarietà
System. . :: . .Object
Microsoft.SqlServer.Management.Smo. . :: . .SmoObjectBase
Microsoft.SqlServer.Management.Smo. . :: . .SqlSmoObject
Microsoft.SqlServer.Management.Smo. . :: . .NamedSmoObject
Microsoft.SqlServer.Management.Smo.Agent. . :: . .AgentObjectBase
Microsoft.SqlServer.Management.Smo.Agent. . :: . .CategoryBase
Microsoft.SqlServer.Management.Smo.Agent..::..AlertCategory
Thread Safety
Tutti i membri pubblici static (Shared in Visual Basic) di questo tipo sono thread safe. I membri di istanza non hanno garanzia di essere thread safe.