SymbolScannerBase.ScanContentAsync<T>(String, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.