Share via


SymbolScannerBase.ScanContentAsync<T>(String, CancellationToken) Method

Definition

Scan a source file for symbol definitions.

public:
generic <typename T>
 where T : class virtual 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)
override this.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)

Type Parameters

T

the expected type to be scanned

Parameters

filePath
String

The workspace file to scan

cancellationToken
CancellationToken

A token that can cancel the scan.

Returns

Task<T>

A task whose result is the collection of discovered symbols.

Implements

Applies to