Compartir a través de


AlertCategory Clase

The AlertCategory class contains attributes that allow alerts to be categorized.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo.Agent
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
Public NotInheritable Class AlertCategory _
    Inherits CategoryBase
'Uso
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

Notas

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

Todos los miembros estáticos (compartidos en Microsoft Visual Basic) públicos de este tipo son seguros para operaciones multiproceso. No se garantiza que los miembros de instancia sean seguros para subprocesos.

Seguridad para subprocesos

Todos los miembros públicos static (Shared en Visual Basic) de este tipo son seguros para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.