IFileScanner.ScanContentAsync<T>(String, CancellationToken) Methode

Definition

Scannt eine Quelldatei auf Symbol Definitionen.

public:
generic <typename T>
 where T : class System::Threading::Tasks::Task<T> ^ ScanContentAsync(System::String ^ filePath, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<T> ScanContentAsync<T> (string filePath, System.Threading.CancellationToken cancellationToken) where T : class;
abstract member ScanContentAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T (requires 'T : null)> (requires 'T : null)
Public Function ScanContentAsync(Of T As Class) (filePath As String, cancellationToken As CancellationToken) As Task(Of T)

Typparameter

T

der erwartete Typ, der gescannt werden soll.

Parameter

filePath
String

Die zu überprüfenden Arbeitsbereichs Datei

cancellationToken
CancellationToken

Ein Token, mit dem der Scan abgebrochen werden kann.

Gibt zurück

Task<T>

Eine Aufgabe, deren Ergebnis die Auflistung von ermittelten Symbolen ist.

Gilt für