Compartilhar via


IVsSimpleObjectList2.UpdateCounter(UInt32) Method

Definition

Returns the current change counter for the tree list, and is used to indicate that the list contents have changed.

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

Parameters

pCurUpdate
UInt32

[out] Pointer to the update counter of the current tree list.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell80.idl:

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

Returning an update counter greater than the last one cached by a given tree forces calls to GetItemCountand LocateExpandedList as needed.

Applies to