共用方式為


IVsAsyncPersistHierarchyItem.ReloadItemAsync(UInt32, IVsProgress) Method

Definition

Reloads a hierarchy item, asynchronously.

public Microsoft.VisualStudio.Shell.Interop.IVsTask ReloadItemAsync (uint itemid, Microsoft.VisualStudio.Shell.Interop.IVsProgress? progress);
abstract member ReloadItemAsync : uint32 * Microsoft.VisualStudio.Shell.Interop.IVsProgress -> Microsoft.VisualStudio.Shell.Interop.IVsTask
Public Function ReloadItemAsync (itemid As UInteger, progress As IVsProgress) As IVsTask

Parameters

itemid
UInt32

The ID of the hierarchy item to be reloaded.

progress
IVsProgress

The interface through which progress is reported.

Returns

A task representing the asynchronous operation.

Remarks

This method must be accessed on the main thread.

Applies to