Freigeben über


ILightBulbBroker2.CreateSession Method

Definition

Overloads

CreateSession(ISuggestedActionCategorySet, ITextView, ISuggestedActionCategorySet)

Creates, but doesn't expand an ILightBulbSession for a given ITextView with current caret position as a trigger point.

CreateSession(ISuggestedActionCategorySet, ITextView, ITrackingPoint, ITrackingSpan, ISuggestedActionCategorySet, Boolean)

Creates, but doesn't expand an ILightBulbSession for a given ITextView with current caret position as a trigger point.

CreateSession(ISuggestedActionCategorySet, ITextView, ISuggestedActionCategorySet)

Creates, but doesn't expand an ILightBulbSession for a given ITextView with current caret position as a trigger point.

public:
 Microsoft::VisualStudio::Language::Intellisense::ILightBulbSession ^ CreateSession(Microsoft::VisualStudio::Language::Intellisense::ISuggestedActionCategorySet ^ requestedActionCategories, Microsoft::VisualStudio::Text::Editor::ITextView ^ textView, Microsoft::VisualStudio::Language::Intellisense::ISuggestedActionCategorySet ^ applicableCategories);
public Microsoft.VisualStudio.Language.Intellisense.ILightBulbSession CreateSession (Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategorySet requestedActionCategories, Microsoft.VisualStudio.Text.Editor.ITextView textView, Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategorySet applicableCategories);
abstract member CreateSession : Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategorySet * Microsoft.VisualStudio.Text.Editor.ITextView * Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategorySet -> Microsoft.VisualStudio.Language.Intellisense.ILightBulbSession
Public Function CreateSession (requestedActionCategories As ISuggestedActionCategorySet, textView As ITextView, applicableCategories As ISuggestedActionCategorySet) As ILightBulbSession

Parameters

requestedActionCategories
ISuggestedActionCategorySet

A set of suggested action categories requested.

textView
ITextView

The ITextView over which to create an ILightBulbSession.

applicableCategories
ISuggestedActionCategorySet

The ISuggestedActionCategorySet of categories with applicable actions.

Returns

A valid instance of ILightBulbSession or null if no ILightBulbSession can be created for given text view and caret position.

Applies to

CreateSession(ISuggestedActionCategorySet, ITextView, ITrackingPoint, ITrackingSpan, ISuggestedActionCategorySet, Boolean)

Creates, but doesn't expand an ILightBulbSession for a given ITextView with current caret position as a trigger point.

public:
 Microsoft::VisualStudio::Language::Intellisense::ILightBulbSession ^ CreateSession(Microsoft::VisualStudio::Language::Intellisense::ISuggestedActionCategorySet ^ requestedActionCategories, Microsoft::VisualStudio::Text::Editor::ITextView ^ textView, Microsoft::VisualStudio::Text::ITrackingPoint ^ triggerPoint, Microsoft::VisualStudio::Text::ITrackingSpan ^ trackingSpan, Microsoft::VisualStudio::Language::Intellisense::ISuggestedActionCategorySet ^ applicableCategories, bool trackMouse);
public Microsoft.VisualStudio.Language.Intellisense.ILightBulbSession CreateSession (Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategorySet requestedActionCategories, Microsoft.VisualStudio.Text.Editor.ITextView textView, Microsoft.VisualStudio.Text.ITrackingPoint triggerPoint, Microsoft.VisualStudio.Text.ITrackingSpan trackingSpan, Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategorySet applicableCategories, bool trackMouse);
abstract member CreateSession : Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategorySet * Microsoft.VisualStudio.Text.Editor.ITextView * Microsoft.VisualStudio.Text.ITrackingPoint * Microsoft.VisualStudio.Text.ITrackingSpan * Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategorySet * bool -> Microsoft.VisualStudio.Language.Intellisense.ILightBulbSession
Public Function CreateSession (requestedActionCategories As ISuggestedActionCategorySet, textView As ITextView, triggerPoint As ITrackingPoint, trackingSpan As ITrackingSpan, applicableCategories As ISuggestedActionCategorySet, trackMouse As Boolean) As ILightBulbSession

Parameters

requestedActionCategories
ISuggestedActionCategorySet

A set of suggested action categories requested.

textView
ITextView

The ITextView over which to create an ILightBulbSession.

triggerPoint
ITrackingPoint

The ITrackingPoint in the text buffer at which to create an ILightBulbSession.

trackingSpan
ITrackingSpan

The ITrackingSpan in the text buffer for which to create an ILightBulbSession.

applicableCategories
ISuggestedActionCategorySet

The ISuggestedActionCategorySet of categories with applicable actions.

trackMouse
Boolean

Determines whether the session should track the mouse.

Returns

A valid instance of ILightBulbSession or null if no ILightBulbSession can be created for given text view and caret position.

Applies to