共用方式為


IPeekableItemSource2.AugmentPeekSession Method

Definition

Determines which IPeekableItems should be part of the specified IPeekSession2.

public:
 void AugmentPeekSession(Microsoft::VisualStudio::Language::Intellisense::IPeekSession ^ session, System::Collections::Generic::IList<Microsoft::VisualStudio::Language::Intellisense::IPeekableItem ^> ^ peekableItems, Microsoft::VisualStudio::Utilities::IUIThreadOperationContext ^ operationContext);
public void AugmentPeekSession (Microsoft.VisualStudio.Language.Intellisense.IPeekSession session, System.Collections.Generic.IList<Microsoft.VisualStudio.Language.Intellisense.IPeekableItem> peekableItems, Microsoft.VisualStudio.Utilities.IUIThreadOperationContext operationContext);
abstract member AugmentPeekSession : Microsoft.VisualStudio.Language.Intellisense.IPeekSession * System.Collections.Generic.IList<Microsoft.VisualStudio.Language.Intellisense.IPeekableItem> * Microsoft.VisualStudio.Utilities.IUIThreadOperationContext -> unit
Public Sub AugmentPeekSession (session As IPeekSession, peekableItems As IList(Of IPeekableItem), operationContext As IUIThreadOperationContext)

Parameters

session
IPeekSession

The session for which to compute IPeekableItems.

peekableItems
IList<IPeekableItem>

The list of IPeekableItems to add to the session.

operationContext
IUIThreadOperationContext

A context of executing this operation on the UI thread, which allows to provide custom operation description and progress information.

Remarks

Each applicable IPeekableItemSource instance will be called in order when recalculating an IPeekSession2. IPeekableItems can be added to the session by adding them to the peekableItems collection passed in as a parameter. In addition, by removing items from the collection, a source may filter IPeekableItems provided by IPeekableItemSources earlier in the calculation chain.

Applies to