Compartilhar via


IVsPreviewChangesList.UpdateCounter(UInt32, UInt32) Method

Definition

Updates the current change counter and returns whether any changes have been made to the preview list and if so, what kind of changes.

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] Returns the current update counter.

pgrfChanges
UInt32

[out] Returns a combination of values from the _VSTREEITEMCHANGESMASK enumeration specifying what kind of changes have been made since the last time this method was called.

Returns

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

Remarks

COM Signature

From vsshell80.idl:

HRESULT IVsPreviewChangesList::UpdateCounter(

[out] ULONG *pCurUpdate,

[out] VSTREEITEMCHANGESMASK *pgrfChanges

);

This method updates the current change counter each time it is called and returns that counter. This method can also return what kind of changes were made.

C++: you can set the pCurUpdate and pgrfChanges parameters to NULL pointers to simply force an update of the counter.

Applies to