JobStep.ID 属性

Gets or sets the ID value that uniquely identifies the job step.

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

语法

声明
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.ReadOnlyAfterCreation Or SfcPropertyFlags.Standalone)> _
Public Property ID As Integer 
    Get 
    Set
用法
Dim instance As JobStep 
Dim value As Integer 

value = instance.ID

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

属性值

类型:System.Int32
An Int32 value that specifies the ID value that uniquely identifies the job step.

注释

The ID of a job step cannot be modified after it has been created. When you create a job step, the ID value of an existing job step can be specified to insert the new job step before the existing job step. The JobStep objects in the JobStepCollection collection is updated automatically to reflect the inserted job step.

If an ID value has not been specified, the job step is appended at the end of the job steps list and is given an ID value that is higher than any other ID value in the job steps list.

示例

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

请参阅

参考

JobStep 类

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

其他资源

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

sp_help_jobstep (Transact-SQL)