IVsThreadedWaitDialog.GiveTimeSlice(String, String, Int32, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
允许更新对话框中的文本,并检查用户是否已取消等待。
public:
int GiveTimeSlice(System::String ^ bstrUpdatedWaitMessage, System::String ^ bstrIfTruncateAppend, int fDisableCancel, [Runtime::InteropServices::Out] int % pfCancelled);
int GiveTimeSlice(std::wstring const & bstrUpdatedWaitMessage, std::wstring const & bstrIfTruncateAppend, int fDisableCancel, [Runtime::InteropServices::Out] int & pfCancelled);
public int GiveTimeSlice (string bstrUpdatedWaitMessage, string bstrIfTruncateAppend, int fDisableCancel, out int pfCancelled);
abstract member GiveTimeSlice : string * string * int * int -> int
Public Function GiveTimeSlice (bstrUpdatedWaitMessage As String, bstrIfTruncateAppend As String, fDisableCancel As Integer, ByRef pfCancelled As Integer) As Integer
参数
- bstrUpdatedWaitMessage
- String
中更新的等待消息。 可以为 null。
- bstrIfTruncateAppend
- String
中可以是 null 一个短字符串,如 L "..."或 L "... " "
- fDisableCancel
- Int32
中如果操作无法再取消,请禁用按钮。
- pfCancelled
- Int32
弄 true 如果操作已取消,则返回。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
COM 签名
从 vsshell80:
HRESULT IVsThreadedWaitDialog::GiveTimeSlice(
[in] BSTR bstrUpdatedWaitMessage,
[in] BSTR bstrIfTruncateAppend,
[in] BOOL fDisableCancel,
[out] BOOL *pfCancelled
);