Microsoft.SqlServer.Management.Smo.Agent 命名空间

类

名称 说明
AgentObjectBase
Alert

封装实例类:Server[@Name='']/JobServer/Alert

AlertCategory

实例类封装: Server[@Name='']/JobServer/AlertCategory

AlertCategoryCollection

MAPPED_TYPE对象的强类型列表具有对排序列表类的所有方法的强类型支持

AlertCollection

MAPPED_TYPE对象的强类型列表具有对排序列表类的所有方法的强类型支持

AlertSystem

封装 :Server[@Name='']/JobServer/AlertSystem 的实例类

CategoryBase
Job

封装的实例类: Server[@Name='']/JobServer/Job

JobCategory

封装实例类: Server[@Name='']/JobServer/JobCategory

JobCategoryCollection

MAPPED_TYPE对象的强类型列表具有对排序列表类的所有方法的强类型支持

JobCollection
JobFilter

JobFilter 对象用于约束 JobServer 对象的 EnumJobs 方法的输出。

JobHistoryFilter

用于控制各种 JobServer 方法的代理作业历史记录枚举的设置

JobSchedule

实例类封装 : Server[@Name='']/JobServer/Job/Schedule

JobScheduleCollection

MAPPED_TYPE 对象的强类型集合支持按对象名称和架构属性为对象编制索引

JobServer

封装实例类:Server[@Name='']/JobServer

JobStep

封装 :Server[@Name='']/JobServer/Job/Step 的实例类

JobStepCollection

MAPPED_TYPE对象的强类型列表具有对排序列表类的所有方法的强类型支持

Operator

封装 :Server[@Name='']/JobServer/Operator 的实例类

OperatorCategory

实例类封装: Server[@Name='']/JobServer/OperatorCategory

OperatorCategoryCollection

MAPPED_TYPE对象的强类型列表具有对排序列表类的所有方法的强类型支持

OperatorCollection

MAPPED_TYPE对象的强类型列表具有对排序列表类的所有方法的强类型支持

ProxyAccount

封装 :Server[@Name='']/JobServer/ProxyAccount 的实例类

ProxyAccountCollection

MAPPED_TYPE对象的强类型列表具有对排序列表类的所有方法的强类型支持

ScheduleBase
TargetServer

封装实例类: Server[@Name='']/JobServer/TargetServer

TargetServerCollection

MAPPED_TYPE对象的强类型列表具有对排序列表类的所有方法的强类型支持

TargetServerGroup

封装 :Server[@Name='']/JobServer/TargetServerGroup 的实例类

TargetServerGroupCollection

MAPPED_TYPE对象的强类型列表具有对排序列表类的所有方法的强类型支持

枚举

名称 说明
ActivationOrder
AgentLogLevels

指定在SQL Server 代理错误日志中记录的信息级别。

AgentMailType

指定可由 SqlAgent 使用的邮件子系统

AgentSubSystem

由于代理帐户与 SQL 代理子系统紧密耦合,因此我们没有特殊的 SubSystem 对象,而是枚举。 此枚举的值必须与引擎中的service_id值匹配

AlertType
CategoryType
CompletionAction
CompletionResult
FindOperand

这会直接评估 DateJobCreated 和 DateJobLastModified 筛选器属性。

FrequencyRelativeIntervals
FrequencySubDayTypes
FrequencyTypes
JobExecutionStatus

表示来自sp_help_job结果的current_execution_status值

JobOutcome
JobServerType
JobStepFlags

控制作业步骤行为的部分

JobType
MonthlyRelativeWeekDays
NotifyMethods
NotifyType

通知类型

OSRunPriority

控制执行操作系统任务的作业步骤的执行线程计划

StepCompletionAction
TargetServerStatus
WeekDays