IFileScannerUpToDateCheck.IsUpToDateAsync(Nullable<DateTimeOffset>, String, FileScannerType, CancellationToken) Methode

Definition

Überprüfen Sie, ob eine Datei auf dem neuesten Stand ist, bevor Sie Sie scannen.

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)

Parameter

lastScanTimestamp
Nullable<DateTimeOffset>

Indizierter Zeitstempel

filePath
String

Der Dateipfad

scannerType
FileScannerType

Der Scannertyp.

cancellationToken
CancellationToken

Ein Token, das die Überprüfung abbrechen kann.

Gibt zurück

Task<Boolean>

True, wenn die Datei auf dem neuesten Stand ist

Gilt für