SharedStatusBar.Progress 方法 (SharedStatusBarOwner, Int32, String, UInt32, UInt32, Boolean)
显示占用确定时间量的操作的进度。
命名空间: 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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。