Compartir a través de


IBlockContextSource.GetBlockContextAsync Method

Definition

Gets the contexts for the given block tag.

public:
 System::Threading::Tasks::Task<Microsoft::VisualStudio::Text::Adornments::IBlockContext ^> ^ GetBlockContextAsync(Microsoft::VisualStudio::Text::Tagging::IBlockTag ^ blockTag, Microsoft::VisualStudio::Text::Editor::ITextView ^ view, System::Threading::CancellationToken token);
public System.Threading.Tasks.Task<Microsoft.VisualStudio.Text.Adornments.IBlockContext> GetBlockContextAsync (Microsoft.VisualStudio.Text.Tagging.IBlockTag blockTag, Microsoft.VisualStudio.Text.Editor.ITextView view, System.Threading.CancellationToken token);
abstract member GetBlockContextAsync : Microsoft.VisualStudio.Text.Tagging.IBlockTag * Microsoft.VisualStudio.Text.Editor.ITextView * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Text.Adornments.IBlockContext>
Public Function GetBlockContextAsync (blockTag As IBlockTag, view As ITextView, token As CancellationToken) As Task(Of IBlockContext)

Parameters

blockTag
IBlockTag

The block tag for which the context is requested.

view
ITextView

The text view associated with the current context.

token
CancellationToken

The cancellation token for this asynchronous method call.

Returns

The IBlockContext to be displayed in the tool tip.

Applies to