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
參數
- possibleOwner
型別:Microsoft.VisualStudio.Data.Schema.Package.UI.SharedStatusBarOwner
狀態列的擁有者。如果不是擁有者,就不會進行任何作業。
- inProgress
型別:System.Int32
如果進度列正在使用中則為 true,如果進度列已完成則為 false。
- label
型別:System.String
當進度列在使用中時,要顯示於狀態欄位中的文字。
- complete
型別:System.UInt32
目前在進度列中完成的單元數目。
- total
型別:System.UInt32
進度列作業的總單元數。
傳回值
型別:System.Int32
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。