IVsPreviewChangesList.UpdateCounter(UInt32, UInt32) Метод
Определение
Обновляет текущий счетчик изменений и возвращает значение, указывающее, были внесены какие-либо изменения в список предварительного просмотра, и если это так, то какие изменения.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
Параметры
- pCurUpdate
- UInt32
[out] Возвращает текущий счетчик обновления.[out] Returns the current update counter.
- pgrfChanges
- UInt32
[out] Возвращает сочетание значений из перечисления _VSTREEITEMCHANGESMASK, указывающее тип изменений, которые были выполнены с момента последнего вызова этого метода.[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.
Возвращаемое значение
Если метод завершается успешно, возвращает значение S_OK.If the method succeeds, it returns S_OK. В противном случае функция возвращает код ошибки.If it fails, it returns an error code.
Комментарии
Подпись COMCOM Signature
Из vsshell80. IDL: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++. можно задать pCurUpdate
pgrfChanges
Параметры и для NULL
указателей, чтобы просто принудительно обновить счетчик.C++: you can set the pCurUpdate
and pgrfChanges
parameters to NULL
pointers to simply force an update of the counter.