IAsyncCodeLensDataPoint.GetDataAsync 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.
Overloads
GetDataAsync(CancellationToken) |
Gets lens data from the data point. |
GetDataAsync(CodeLensDescriptorContext, CancellationToken) |
Gets lens data from the data point. |
GetDataAsync(CancellationToken)
Gets lens data from the data point.
public:
System::Threading::Tasks::Task<Microsoft::VisualStudio::Language::CodeLens::Remoting::CodeLensDataPointDescriptor ^> ^ GetDataAsync(System::Threading::CancellationToken token);
public System.Threading.Tasks.Task<Microsoft.VisualStudio.Language.CodeLens.Remoting.CodeLensDataPointDescriptor> GetDataAsync (System.Threading.CancellationToken token);
abstract member GetDataAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Language.CodeLens.Remoting.CodeLensDataPointDescriptor>
Public Function GetDataAsync (token As CancellationToken) As Task(Of CodeLensDataPointDescriptor)
Parameters
- token
- CancellationToken
Returns
A CodeLensDataPointDescriptor object representing the lens data from the data point.
Applies to
GetDataAsync(CodeLensDescriptorContext, CancellationToken)
Gets lens data from the data point.
public:
System::Threading::Tasks::Task<Microsoft::VisualStudio::Language::CodeLens::Remoting::CodeLensDataPointDescriptor ^> ^ GetDataAsync(Microsoft::VisualStudio::Language::CodeLens::CodeLensDescriptorContext ^ descriptorContext, System::Threading::CancellationToken token);
public System.Threading.Tasks.Task<Microsoft.VisualStudio.Language.CodeLens.Remoting.CodeLensDataPointDescriptor> GetDataAsync (Microsoft.VisualStudio.Language.CodeLens.CodeLensDescriptorContext descriptorContext, System.Threading.CancellationToken token);
abstract member GetDataAsync : Microsoft.VisualStudio.Language.CodeLens.CodeLensDescriptorContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Language.CodeLens.Remoting.CodeLensDataPointDescriptor>
Public Function GetDataAsync (descriptorContext As CodeLensDescriptorContext, token As CancellationToken) As Task(Of CodeLensDataPointDescriptor)
Parameters
- descriptorContext
- CodeLensDescriptorContext
An instance of CodeLensDescriptorContext containing dynamic contextual properties of a code element associated with the data point.
- token
- CancellationToken
Returns
A CodeLensDataPointDescriptor object representing the lens data from the data point.