IAsyncQuickInfoSource.GetQuickInfoItemAsync 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 Quick Info item and tracking span via a QuickInfoItem.
public:
System::Threading::Tasks::Task<Microsoft::VisualStudio::Language::Intellisense::QuickInfoItem ^> ^ GetQuickInfoItemAsync(Microsoft::VisualStudio::Language::Intellisense::IAsyncQuickInfoSession ^ session, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<Microsoft.VisualStudio.Language.Intellisense.QuickInfoItem> GetQuickInfoItemAsync (Microsoft.VisualStudio.Language.Intellisense.IAsyncQuickInfoSession session, System.Threading.CancellationToken cancellationToken);
abstract member GetQuickInfoItemAsync : Microsoft.VisualStudio.Language.Intellisense.IAsyncQuickInfoSession * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Language.Intellisense.QuickInfoItem>
Public Function GetQuickInfoItemAsync (session As IAsyncQuickInfoSession, cancellationToken As CancellationToken) As Task(Of QuickInfoItem)
Parameters
- session
- IAsyncQuickInfoSession
An object tracking the current state of the Quick Info.
- cancellationToken
- CancellationToken
Cancels an in-progress computation.
Returns
item and a tracking span for which these item are applicable.
Remarks
This method is always called on a background thread. Multiple elements can be be returned by a single source by wrapping them in a ContainerElement.