共用方式為


IAsyncLightBulbSession.PopulateWithData Method

Definition

Caution

Use PopulateWithDataAsync instead.

Gets SuggestedActionSets through synchronous API and enqueues work to get SuggestedActionSets through asynchronous API. Displays the received actions in the UI and communicates updates through the SuggestedActionsUpdated event.

public:
 void PopulateWithData(Microsoft::VisualStudio::Language::Intellisense::ISuggestedActionCategorySet ^ overrideRequestedActionCategories, Microsoft::VisualStudio::Utilities::IUIThreadOperationContext ^ operationContext);
[System.Obsolete("Use PopulateWithDataAsync instead.")]
public void PopulateWithData (Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategorySet? overrideRequestedActionCategories, Microsoft.VisualStudio.Utilities.IUIThreadOperationContext? operationContext);
[<System.Obsolete("Use PopulateWithDataAsync instead.")>]
abstract member PopulateWithData : Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategorySet * Microsoft.VisualStudio.Utilities.IUIThreadOperationContext -> unit
Public Sub PopulateWithData (overrideRequestedActionCategories As ISuggestedActionCategorySet, operationContext As IUIThreadOperationContext)

Parameters

overrideRequestedActionCategories
ISuggestedActionCategorySet

Set of suggested action categories to provide instead of ActionCategories.

operationContext
IUIThreadOperationContext

Supports cancellation and reporting progress

Attributes

Remarks

When no data is available, the ILightBulbSession dismisses.

Applies to