IVsPreviewChangesList.UpdateCounter Method
Updates the current change counter and returns whether any changes have been made to the preview list and if so, what kind of changes.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'Declaration
Function UpdateCounter ( _
<OutAttribute> ByRef pCurUpdate As UInteger, _
<OutAttribute> ByRef pgrfChanges As UInteger _
) As Integer
int UpdateCounter(
out uint pCurUpdate,
out uint pgrfChanges
)
int UpdateCounter(
[OutAttribute] unsigned int% pCurUpdate,
[OutAttribute] unsigned int% pgrfChanges
)
abstract UpdateCounter :
pCurUpdate:uint32 byref *
pgrfChanges:uint32 byref -> int
function UpdateCounter(
pCurUpdate : uint,
pgrfChanges : uint
) : int
Parameters
pCurUpdate
Type: UInt32%[out] Returns the current update counter.
pgrfChanges
Type: 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.
Return Value
Type: Int32
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.