共用方式為


ISharedStatusBar.Progress 方法 (SharedStatusBarOwner, Int32, String, UInt32, UInt32)

顯示需要一定時間量來執行之作業的進度。

命名空間:  Microsoft.VisualStudio.Data.Schema.Package.UI
組件:  Microsoft.VisualStudio.Data.Schema.Package (在 Microsoft.VisualStudio.Data.Schema.Package.dll 中)

語法

'宣告
Function Progress ( _
    possibleOwner As SharedStatusBarOwner, _
    inProgress As Integer, _
    label As String, _
    complete As UInteger, _
    total As UInteger _
) As Integer
int Progress(
    SharedStatusBarOwner possibleOwner,
    int inProgress,
    string label,
    uint complete,
    uint total
)
int Progress(
    SharedStatusBarOwner^ possibleOwner, 
    int inProgress, 
    String^ label, 
    unsigned int complete, 
    unsigned int total
)
abstract Progress : 
        possibleOwner:SharedStatusBarOwner * 
        inProgress:int * 
        label:string * 
        complete:uint32 * 
        total:uint32 -> int 
function Progress(
    possibleOwner : SharedStatusBarOwner, 
    inProgress : int, 
    label : String, 
    complete : uint, 
    total : uint
) : int

參數

  • inProgress
    型別:System.Int32
    如果進度列正在使用中則為 true,如果進度列已完成則為 false。
  • label
    型別:System.String
    當進度列在使用中時,要顯示於狀態欄位中的文字。
  • complete
    型別:System.UInt32
    目前在進度列中完成的單元數目。

傳回值

型別:System.Int32

.NET Framework 安全性

請參閱

參考

ISharedStatusBar 介面

Progress 多載

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