共用方式為


OSRunPriority 屬性

Gets or sets the execution thread scheduling for job steps executing operating system tasks.

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

語法

'宣告
<SfcPropertyAttribute> _
Public Property OSRunPriority As OSRunPriority
    Get
    Set
'用途
Dim instance As JobStep
Dim value As OSRunPriority

value = instance.OSRunPriority

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

屬性值

型別:Microsoft.SqlServer.Management.Smo.Agent. . :: . .OSRunPriority
An OSRunPriority value that specifies the priority given to job steps executing operating system tasks.

備註

Set the OSRunPriority property to modify execution thread scheduling for job steps executing operating system commands. The property specifies a thread priority relative to that granted to an instance of Microsoft SQL Server.

Caution   Setting operating system thread priority can have adverse effects on other processes running on the server. Care should be taken when specifying priorities greater than normal.