다음을 통해 공유


IAsyncQuickInfoSource.GetQuickInfoItemAsync Method

Definition

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.

Applies to