IBlockContextSource.GetBlockContextAsync 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.
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.