次の方法で共有


IAsyncCodeLensDataPointProvider.CanCreateDataPointAsync Method

Definition

Overloads

CanCreateDataPointAsync(CodeLensDescriptor, CancellationToken)

Determines if this provider can create an IAsyncCodeLensDataPoint for the specified CodeLensDescriptor.

CanCreateDataPointAsync(CodeLensDescriptor, CodeLensDescriptorContext, CancellationToken)

Determines if this provider can create an IAsyncCodeLensDataPoint for the specified CodeLensDescriptor.

CanCreateDataPointAsync(CodeLensDescriptor, CancellationToken)

Determines if this provider can create an IAsyncCodeLensDataPoint for the specified CodeLensDescriptor.

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

Parameters

descriptor
CodeLensDescriptor

The descriptor to check.

Returns

true if a data point can be created from the descriptor; false otherwise.

Applies to

CanCreateDataPointAsync(CodeLensDescriptor, CodeLensDescriptorContext, CancellationToken)

Determines if this provider can create an IAsyncCodeLensDataPoint for the specified CodeLensDescriptor.

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

Parameters

descriptor
CodeLensDescriptor

The descriptor to check.

descriptorContext
CodeLensDescriptorContext

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

token
CancellationToken

Cancellation token

Returns

true if a data point can be created from the descriptor; false otherwise.

Applies to