Freigeben über


CodeLens.GetLabelAsync(CodeElementContext, CancellationToken) Method

Definition

Gets CodeLens label for the CodeLens instance given the context information.

public abstract System.Threading.Tasks.Task<Microsoft.VisualStudio.Extensibility.Editor.CodeLensLabel> GetLabelAsync (Microsoft.VisualStudio.Extensibility.Editor.CodeElementContext codeElementContext, System.Threading.CancellationToken token);
abstract member GetLabelAsync : Microsoft.VisualStudio.Extensibility.Editor.CodeElementContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Extensibility.Editor.CodeLensLabel>
Public MustOverride Function GetLabelAsync (codeElementContext As CodeElementContext, token As CancellationToken) As Task(Of CodeLensLabel)

Parameters

codeElementContext
CodeElementContext

Dynamic code element context at the point of invocation.

token
CancellationToken

Cancellation token to observe.

Returns

CodeLens label information.

Applies to