Freigeben über


IVsLiteTreeList.UpdateCounter(UInt32, 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, [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

Parameters

pCurUpdate
UInt32

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

pgrfChanges
UInt32

[out] Specifies changes that have occurred. Values are taken from the _VSTREEITEMCHANGESMASK enumeration.

Returns

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

Remarks

COM Signature

From vsshell.idl:

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

Returning an update counter greater than the last one cached by a given tree will force calls to GetItemCount and LocateExpandedList as needed. The pgrfChanges parameter contains values from the _VSTREEITEMCHANGESMASK enumeration. This enumeration is for future support of dynamic tree list modification. The capability is not currently enabled. While you can assign a value to pgrfChanges, the caller will ignore the parameter.

Applies to