顯示需要一定時間量來執行之作業的進度。
命名空間: Microsoft.VisualStudio.Data.Schema.Package.UI
組件: Microsoft.VisualStudio.Data.Schema.Package (在 Microsoft.VisualStudio.Data.Schema.Package.dll 中)
語法
'宣告
Public Function Progress ( _
possibleOwner As SharedStatusBarOwner, _
fInProgress As Integer, _
pwszLabel As String, _
nComplete As UInteger, _
nTotal As UInteger, _
ignoreOwner As Boolean _
) As Integer
public int Progress(
SharedStatusBarOwner possibleOwner,
int fInProgress,
string pwszLabel,
uint nComplete,
uint nTotal,
bool ignoreOwner
)
public:
virtual int Progress(
SharedStatusBarOwner^ possibleOwner,
int fInProgress,
String^ pwszLabel,
unsigned int nComplete,
unsigned int nTotal,
bool ignoreOwner
) sealed
abstract Progress :
possibleOwner:SharedStatusBarOwner *
fInProgress:int *
pwszLabel:string *
nComplete:uint32 *
nTotal:uint32 *
ignoreOwner:bool -> int
override Progress :
possibleOwner:SharedStatusBarOwner *
fInProgress:int *
pwszLabel:string *
nComplete:uint32 *
nTotal:uint32 *
ignoreOwner:bool -> int
public final function Progress(
possibleOwner : SharedStatusBarOwner,
fInProgress : int,
pwszLabel : String,
nComplete : uint,
nTotal : uint,
ignoreOwner : boolean
) : int
參數
- possibleOwner
型別:Microsoft.VisualStudio.Data.Schema.Package.UI.SharedStatusBarOwner
狀態列的擁有者。如果不是擁有者,就不會進行任何作業。
- fInProgress
型別:System.Int32
如果進度列正在使用中則為 true,如果進度列已完成則為 false。
- pwszLabel
型別:System.String
當進度列在使用中時,要顯示於狀態欄位中的文字。
- nComplete
型別:System.UInt32
目前在進度列中完成的單元數目。
- nTotal
型別:System.UInt32
進度列作業的總單元數。
- ignoreOwner
型別:System.Boolean
表示是否要忽略狀態列的擁有者。
傳回值
型別:System.Int32
實作
ISharedStatusBar.Progress(SharedStatusBarOwner, Int32, String, UInt32, UInt32, Boolean)
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。