共用方式為


IAsyncCodeLensDataPointProvider.CreateDataPointAsync Method

Definition

Overloads

CreateDataPointAsync(CodeLensDescriptor, CancellationToken)

Creates an IAsyncCodeLensDataPoint, on request, from a given descriptor.

CreateDataPointAsync(CodeLensDescriptor, CodeLensDescriptorContext, CancellationToken)

Creates an IAsyncCodeLensDataPoint, on request, from a given descriptor.

CreateDataPointAsync(CodeLensDescriptor, CancellationToken)

Creates an IAsyncCodeLensDataPoint, on request, from a given descriptor.

public:
 System::Threading::Tasks::Task<Microsoft::VisualStudio::Language::CodeLens::Remoting::IAsyncCodeLensDataPoint ^> ^ CreateDataPointAsync(Microsoft::VisualStudio::Language::CodeLens::Remoting::CodeLensDescriptor ^ descriptor, System::Threading::CancellationToken token);
public System.Threading.Tasks.Task<Microsoft.VisualStudio.Language.CodeLens.Remoting.IAsyncCodeLensDataPoint> CreateDataPointAsync (Microsoft.VisualStudio.Language.CodeLens.Remoting.CodeLensDescriptor descriptor, System.Threading.CancellationToken token);
abstract member CreateDataPointAsync : Microsoft.VisualStudio.Language.CodeLens.Remoting.CodeLensDescriptor * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Language.CodeLens.Remoting.IAsyncCodeLensDataPoint>
Public Function CreateDataPointAsync (descriptor As CodeLensDescriptor, token As CancellationToken) As Task(Of IAsyncCodeLensDataPoint)

Parameters

descriptor
CodeLensDescriptor

The descriptor to use.

Returns

An IAsyncCodeLensDataPoint created from the descriptor.

Applies to

CreateDataPointAsync(CodeLensDescriptor, CodeLensDescriptorContext, CancellationToken)

Creates an IAsyncCodeLensDataPoint, on request, from a given descriptor.

public:
 System::Threading::Tasks::Task<Microsoft::VisualStudio::Language::CodeLens::Remoting::IAsyncCodeLensDataPoint ^> ^ CreateDataPointAsync(Microsoft::VisualStudio::Language::CodeLens::Remoting::CodeLensDescriptor ^ descriptor, Microsoft::VisualStudio::Language::CodeLens::CodeLensDescriptorContext ^ descriptorContext, System::Threading::CancellationToken token);
public System.Threading.Tasks.Task<Microsoft.VisualStudio.Language.CodeLens.Remoting.IAsyncCodeLensDataPoint> CreateDataPointAsync (Microsoft.VisualStudio.Language.CodeLens.Remoting.CodeLensDescriptor descriptor, Microsoft.VisualStudio.Language.CodeLens.CodeLensDescriptorContext descriptorContext, System.Threading.CancellationToken token);
abstract member CreateDataPointAsync : Microsoft.VisualStudio.Language.CodeLens.Remoting.CodeLensDescriptor * Microsoft.VisualStudio.Language.CodeLens.CodeLensDescriptorContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Language.CodeLens.Remoting.IAsyncCodeLensDataPoint>
Public Function CreateDataPointAsync (descriptor As CodeLensDescriptor, descriptorContext As CodeLensDescriptorContext, token As CancellationToken) As Task(Of IAsyncCodeLensDataPoint)

Parameters

descriptor
CodeLensDescriptor

The descriptor to use.

descriptorContext
CodeLensDescriptorContext

An instance of CodeLensDescriptorContext containing dynamic contextual properties of a code element associated with the data point.

token
CancellationToken

Cancellation token

Returns

An IAsyncCodeLensDataPoint created from the descriptor.

Applies to