HasStep 属性

Gets the Boolean property value that specifies whether the job has at least one job step.

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

语法

声明
<SfcPropertyAttribute(SfcPropertyFlags.Expensive)> _
Public ReadOnly Property HasStep As Boolean
    Get
用法
Dim instance As Job
Dim value As Boolean

value = instance.HasStep
[SfcPropertyAttribute(SfcPropertyFlags.Expensive)]
public bool HasStep { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Expensive)]
public:
property bool HasStep {
    bool get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Expensive)>]
member HasStep : bool
function get HasStep () : boolean

属性值

类型:System. . :: . .Boolean
A Boolean value that specifies whether the job has at least one job step.
If True, the job has at least one job step.
If False, the job does not have any job steps.

注释

Microsoft SQL Server Agent jobs must have at least one job step to be executable. Define and add JobStep objects to the JobSteps collection of a Job object to create job steps. This alters the value of the HasStep property.