IVsStatusbar.FreezeOutput(Int32) 方法

定义

禁止更新状态文本区域。

public:
 int FreezeOutput(int fFreeze);
public:
 int FreezeOutput(int fFreeze);
int FreezeOutput(int fFreeze);
public int FreezeOutput (int fFreeze);
abstract member FreezeOutput : int -> int
Public Function FreezeOutput (fFreeze As Integer) As Integer

参数

fFreeze
Int32

[in] true 指示环境在状态栏上放置冻结。 在冻结解除锁定之前,不能再进行任何更新。 false 释放冻结。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

COM 签名

从 vsshell:

HRESULT IVsStatusbar::FreezeOutput(  
   [in] BOOL fFreeze  
);  

您可以对执行多次调用 FreezeOutput ,也就是说,可以嵌套状态栏冻结。 每个嵌套调用都必须与调用以释放相应的冻结。 调用 GetFreezeCount 以检索当前生效的冻结数。

适用于