다음을 통해 공유


CategoryBase 클래스

The CategoryBase class is a base class that is used in the construction of the JobCategory class, the OperatorCategory class, and the AlertCategory class. It contains functionality that is common to all three category classes.

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

구문

‘선언
Public Class CategoryBase _
    Inherits AgentObjectBase _
    Implements ICreatable, IDroppable, IRenamable, IScriptable
‘사용 방법
Dim instance As CategoryBase
public class CategoryBase : AgentObjectBase, 
    ICreatable, IDroppable, IRenamable, IScriptable
public ref class CategoryBase : public AgentObjectBase, 
    ICreatable, IDroppable, IRenamable, IScriptable
type CategoryBase =  
    class
        inherit AgentObjectBase
        interface ICreatable
        interface IDroppable
        interface IRenamable
        interface IScriptable
    end
public class CategoryBase extends AgentObjectBase implements ICreatable, IDroppable, IRenamable, IScriptable

주의

SQL Server Agent categories are optional attributes that are used to group alerts, jobs, and operators.

With the JobCategory, OperatorCategory, and AlertCategory objects, you can:

  • Create groupings for alerts, jobs, and operators.

Thread Safety

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

스레드로부터의 안전성

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