IVsObjectList2.UpdateCounter(UInt32, UInt32) 方法

定义

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

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

参数

pCurUpdate
UInt32

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

pgrfChanges
UInt32

弄指定已发生的更改。 值取自 _VSTREEITEMCHANGESMASK 枚举。

返回

Int32

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

注解

COM 签名

从 vsshell80:

[C++]

HRESULT IVsObjectList2::UpdateCounter(  
   [out] ULONG *pCurUpdate,   
   out] VSTREEITEMCHANGESMASK *pgrfChanges  
);  

返回比给定树缓存的最后一个更新计数器更多的更新计数器会强制调用 GetItemCountLocateExpandedList 所需的。 pgrfChanges参数包含枚举中的值 _VSTREEITEMCHANGESMASK 。 此枚举用于未来对动态树列表修改的支持。 此功能当前未启用。 尽管可以向赋值 pgrfChanges ,但调用方将忽略参数。

适用于