DataSchemaErrorTaskService.GetWorkload 方法

返回此空闲处理器的剩余工作负荷。

命名空间:  Microsoft.VisualStudio.Data.Schema.Package.UI
程序集:  Microsoft.VisualStudio.Data.Schema.Package(在 Microsoft.VisualStudio.Data.Schema.Package.dll 中)

语法

声明
Public Sub GetWorkload ( _
    <OutAttribute> ByRef stepsLeftToPerform As Integer, _
    <OutAttribute> ByRef stepsProcessedForEachIdle As Integer, _
    <OutAttribute> ByRef workloadDescription As String _
)
public void GetWorkload(
    out int stepsLeftToPerform,
    out int stepsProcessedForEachIdle,
    out string workloadDescription
)
public:
virtual void GetWorkload(
    [OutAttribute] int% stepsLeftToPerform, 
    [OutAttribute] int% stepsProcessedForEachIdle, 
    [OutAttribute] String^% workloadDescription
) sealed
abstract GetWorkload : 
        stepsLeftToPerform:int byref * 
        stepsProcessedForEachIdle:int byref * 
        workloadDescription:string byref -> unit 
override GetWorkload : 
        stepsLeftToPerform:int byref * 
        stepsProcessedForEachIdle:int byref * 
        workloadDescription:string byref -> unit 
public final function GetWorkload(
    stepsLeftToPerform : int, 
    stepsProcessedForEachIdle : int, 
    workloadDescription : String
)

参数

  • stepsLeftToPerform
    类型:System.Int32%
    此空闲处理器在完成其工作之前仍必须处理的步骤数。
  • stepsProcessedForEachIdle
    类型:System.Int32%
    每次调用此空闲处理器时处理的步骤数(平均)。这可向系统指出,在所有排队的工作完成之前,还必须调用多少次 OnIdle。
  • workloadDescription
    类型:System.String%
    如果剩余任何工作负荷,这会返回要执行的工作类型。如果剩余足够的工作并且使用了状态栏,则可向用户显示此文本。

实现

IDatabaseProjectWorkloadProvider.GetWorkload(Int32%, Int32%, String%)

备注

如果该处理器没有任何剩余的工作负荷,则返回 0。

.NET Framework 安全性

请参见

参考

DataSchemaErrorTaskService 类

Microsoft.VisualStudio.Data.Schema.Package.UI 命名空间