共用方式為


CurrentRunStep 屬性

Gets information about the job step that is currently running.

命名空間:  Microsoft.SqlServer.Management.Smo.Agent
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Expensive)> _
Public ReadOnly Property CurrentRunStep As String
    Get
'用途
Dim instance As Job
Dim value As String

value = instance.CurrentRunStep
[SfcPropertyAttribute(SfcPropertyFlags.Expensive)]
public string CurrentRunStep { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Expensive)]
public:
property String^ CurrentRunStep {
    String^ get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Expensive)>]
member CurrentRunStep : string
function get CurrentRunStep () : String

屬性值

型別:System. . :: . .String
A String value that specifies the job step that is currently running.

備註

For executing jobs, the property reports the job step by number, and the name of the job step as a string, for example: 2 (Run Replication Agent.).