Classifier.GetClassifiedSpansAsync 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.
public static System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Classification.ClassifiedSpan>> GetClassifiedSpansAsync(Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.Text.TextSpan textSpan, System.Threading.CancellationToken cancellationToken = default);
static member GetClassifiedSpansAsync : Microsoft.CodeAnalysis.Document * Microsoft.CodeAnalysis.Text.TextSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.CodeAnalysis.Classification.ClassifiedSpan>>
Public Shared Function GetClassifiedSpansAsync (document As Document, textSpan As TextSpan, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IEnumerable(Of ClassifiedSpan))
Parameters
- document
- Document
- textSpan
- TextSpan
- cancellationToken
- CancellationToken