Share via


IFileScannerUpToDateCheck.IsUpToDateAsync Method

Definition

Check if a file is up to date before scanning it.

public:
 System::Threading::Tasks::Task<bool> ^ IsUpToDateAsync(Nullable<DateTimeOffset> lastScanTimestamp, System::String ^ filePath, Microsoft::VisualStudio::Workspace::Indexing::FileScannerType scannerType, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<bool> IsUpToDateAsync (DateTimeOffset? lastScanTimestamp, string filePath, Microsoft.VisualStudio.Workspace.Indexing.FileScannerType scannerType, System.Threading.CancellationToken cancellationToken);
abstract member IsUpToDateAsync : Nullable<DateTimeOffset> * string * Microsoft.VisualStudio.Workspace.Indexing.FileScannerType * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function IsUpToDateAsync (lastScanTimestamp As Nullable(Of DateTimeOffset), filePath As String, scannerType As FileScannerType, cancellationToken As CancellationToken) As Task(Of Boolean)

Parameters

lastScanTimestamp
Nullable<DateTimeOffset>

Indexed timestamp

filePath
String

The file path

scannerType
FileScannerType

The scanner type

cancellationToken
CancellationToken

A token that can cancel the check.

Returns

True is the file is up to date

Applies to