ISharedStatusBar.Progress 方法 (SharedStatusBarOwner, Int32, String, UInt32, UInt32, Boolean)
显示占用确定时间量的操作的进度。
命名空间: 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, _
ignoreOwner As Boolean _
) As Integer
int Progress(
SharedStatusBarOwner possibleOwner,
int inProgress,
string label,
uint complete,
uint total,
bool ignoreOwner
)
int Progress(
SharedStatusBarOwner^ possibleOwner,
int inProgress,
String^ label,
unsigned int complete,
unsigned int total,
bool ignoreOwner
)
abstract Progress :
possibleOwner:SharedStatusBarOwner *
inProgress:int *
label:string *
complete:uint32 *
total:uint32 *
ignoreOwner:bool -> int
function Progress(
possibleOwner : SharedStatusBarOwner,
inProgress : int,
label : String,
complete : uint,
total : uint,
ignoreOwner : boolean
) : int
参数
- possibleOwner
类型:Microsoft.VisualStudio.Data.Schema.Package.UI.SharedStatusBarOwner
状态栏的所有者。如果不是所有者,则不会发生任何操作。
- inProgress
类型:System.Int32
如果正在使用进度栏,则为 true;如果进度栏已完成,则为 false。
- label
类型:System.String
使用进度栏时要在状态字段中显示的文本。
- complete
类型:System.UInt32
进度栏中当前已完成的单位数。
- total
类型:System.UInt32
进度栏操作的总单位数。
- ignoreOwner
类型:System.Boolean
查询是否忽略状态栏的所有者。
返回值
类型:System.Int32
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。