JobSchedule.FrequencyTypes 属性

Gets or sets the way in which frequency is evaluated for the job schedule, whether it's one time only, or weekly, or when the processor is idle, for example.

命名空间:  Microsoft.SqlServer.Management.Smo.Agent
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property FrequencyTypes As FrequencyTypes 
    Get 
    Set
用法
Dim instance As JobSchedule 
Dim value As FrequencyTypes 

value = instance.FrequencyTypes

instance.FrequencyTypes = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public FrequencyTypes FrequencyTypes { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property FrequencyTypes FrequencyTypes {
    FrequencyTypes get ();
    void set (FrequencyTypes value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member FrequencyTypes : FrequencyTypes with get, set
function get FrequencyTypes () : FrequencyTypes 
function set FrequencyTypes (value : FrequencyTypes)

属性值

类型:Microsoft.SqlServer.Management.Smo.Agent.FrequencyTypes
A FrequencyTypes object value that specifies the way that the frequency of the scheduled job is evaluated.

注释

The frequency of the scheduled job can be hourly, daily, weekly, monthly, on certain days of the week that occur in the month, one time only, or when SQL Server starts or is idle, for example.

示例

在 SQL Server 代理中计划自动管理任务

请参阅

参考

JobSchedule 类

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

其他资源

自动执行管理任务(SQL Server 代理)

sp_add_schedule (Transact-SQL)