IVsObjectList2.UpdateCounter(UInt32, UInt32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 vsshell80.idl:
[C++]
HRESULT IVsObjectList2::UpdateCounter(
[out] ULONG *pCurUpdate,
out] VSTREEITEMCHANGESMASK *pgrfChanges
);
Returning an update counter greater than the last one cached by a given tree forces calls to GetItemCountand 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 ignores the parameter.