IVsLibrary.UpdateCounter(UInt32) 方法

定义

返回库的当前更改计数器,并用于指示库内容已更改。

public:
 int UpdateCounter([Runtime::InteropServices::Out] System::UInt32 % pCurUpdate);
int UpdateCounter([Runtime::InteropServices::Out] unsigned int & pCurUpdate);
public int UpdateCounter (out uint pCurUpdate);
abstract member UpdateCounter : uint32 -> int
Public Function UpdateCounter (ByRef pCurUpdate As UInteger) As Integer

参数

pCurUpdate
UInt32

弄指向当前更新计数器的指针。

返回

Int32

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

注解

COM 签名

从 vsshell:

HRESULT IVsLibrary::UpdateCounter(  
   [out] ULONG *pCurUpdate  
);  

pCurUpdate每次对库进行更新时代码中的增量。 环境检查此值以确定是否需要重新查询库对象。

适用于