Share via


IIndexWorkspaceServiceHelper.RefreshElementAsync Method

Definition

Refresh an element

public static System.Threading.Tasks.Task RefreshElementAsync (this Microsoft.VisualStudio.Workspace.Indexing.IIndexWorkspaceService indexWorkspaceService, string filePath, Microsoft.VisualStudio.Workspace.Indexing.IndexElement elements = Microsoft.VisualStudio.Workspace.Indexing.IndexElement.All, System.Threading.CancellationToken cancellationToken = default);
static member RefreshElementAsync : Microsoft.VisualStudio.Workspace.Indexing.IIndexWorkspaceService * string * Microsoft.VisualStudio.Workspace.Indexing.IndexElement * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function RefreshElementAsync (indexWorkspaceService As IIndexWorkspaceService, filePath As String, Optional elements As IndexElement = Microsoft.VisualStudio.Workspace.Indexing.IndexElement.All, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

indexWorkspaceService
IIndexWorkspaceService

The index service

filePath
String

Reference to element path

elements
IndexElement

Type of elements being refreshed

cancellationToken
CancellationToken

Cancellation token

Returns

A task representing the long-running operation.

Applies to