다음을 통해 공유


OperatorCategory 클래스

The OperatorCategory class contains attributes that allow operators to be categorized.

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

구문

‘선언
Public NotInheritable Class OperatorCategory _
    Inherits CategoryBase
‘사용 방법
Dim instance As OperatorCategory
public sealed class OperatorCategory : CategoryBase
public ref class OperatorCategory sealed : public CategoryBase
[<SealedAttribute>]
type OperatorCategory =  
    class
        inherit CategoryBase
    end
public final class OperatorCategory extends CategoryBase

주의

SQL Server Agent categories provide optional attributes that are used to distinguish groups of operators.

With the OperatorCategory object, you can:

  • Create groupings for operators.

The category name must be unique.

To get OperatorCategory object properties, users must be a member of the SQLAgentUserRole database role on the MSDB database, or be a member of the sysadmin fixed server role.

To set OperatorCategory object properties, users must be a member of the sysadmin fixed server role.

To create or drop an operator category, users must be a member of the sysadmin fixed server role.

Thread Safety

이 유형의 모든 public static(Microsoft Visual Basic의 경우 공유) 멤버는 다중 스레드 작업을 수행하기에 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

스레드로부터의 안전성

이 형식의 모든 공용 static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.