共用方式為


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

'宣告
Function UpdateCounter ( _
    <OutAttribute> ByRef pCurUpdate As UInteger, _
    <OutAttribute> ByRef pgrfChanges As UInteger _
) As Integer
'用途
Dim instance As IVsPreviewChangesList
Dim pCurUpdate As UInteger
Dim pgrfChanges As UInteger
Dim returnValue As Integer

returnValue = instance.UpdateCounter(pCurUpdate, _
    pgrfChanges)
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: System.UInt32%
    [out] Returns the current update counter.
  • pgrfChanges
    Type: System.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: System.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

See Also

Reference

IVsPreviewChangesList Interface

IVsPreviewChangesList Members

Microsoft.VisualStudio.Shell.Interop Namespace