IAsyncCodeLensDataPointProvider.CanCreateDataPointAsync Yöntem

Tanım

Aşırı Yüklemeler

CanCreateDataPointAsync(CodeLensDescriptor, CancellationToken)

Bu sağlayıcının belirtilen için bir oluşturup oluşturamayacağını belirler IAsyncCodeLensDataPoint CodeLensDescriptor .

CanCreateDataPointAsync(CodeLensDescriptor, CodeLensDescriptorContext, CancellationToken)

CanCreateDataPointAsync(CodeLensDescriptor, CancellationToken)

Bu sağlayıcının belirtilen için bir oluşturup oluşturamayacağını belirler IAsyncCodeLensDataPoint 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)

Parametreler

descriptor
CodeLensDescriptor

Denetlenecek tanımlayıcı.

Döndürülenler

Task<Boolean>

tanımlayıcıdan bir veri noktası oluşturulabiliyorsa true ; Aksi takdirde false .

Şunlara uygulanır

CanCreateDataPointAsync(CodeLensDescriptor, CodeLensDescriptorContext, CancellationToken)

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)

Parametreler

descriptor
CodeLensDescriptor
descriptorContext
CodeLensDescriptorContext

Döndürülenler

Task<Boolean>

Şunlara uygulanır