ILightBulbBroker.CreateSession 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.
Overloads
CreateSession(ISuggestedActionCategorySet, ITextView) |
Obsolete.
Creates, but doesn't expand a ILightBulbSession for a given ITextView with current caret position as a trigger point. |
CreateSession(ISuggestedActionCategorySet, ITextView, ITrackingPoint, ITrackingSpan, Boolean) |
Obsolete.
Creates, but doesn't expand a ILightBulbSession for a given ITextView with current caret position as a trigger point. |
CreateSession(ISuggestedActionCategorySet, ITextView)
Caution
Use ILightBulbBroker2.CreateSession instead
Creates, but doesn't expand a 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);
public Microsoft.VisualStudio.Language.Intellisense.ILightBulbSession CreateSession (Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategorySet requestedActionCategories, Microsoft.VisualStudio.Text.Editor.ITextView textView);
[System.Obsolete("Use ILightBulbBroker2.CreateSession instead")]
public Microsoft.VisualStudio.Language.Intellisense.ILightBulbSession CreateSession (Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategorySet requestedActionCategories, Microsoft.VisualStudio.Text.Editor.ITextView textView);
abstract member CreateSession : Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategorySet * Microsoft.VisualStudio.Text.Editor.ITextView -> Microsoft.VisualStudio.Language.Intellisense.ILightBulbSession
[<System.Obsolete("Use ILightBulbBroker2.CreateSession instead")>]
abstract member CreateSession : Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategorySet * Microsoft.VisualStudio.Text.Editor.ITextView -> Microsoft.VisualStudio.Language.Intellisense.ILightBulbSession
Public Function CreateSession (requestedActionCategories As ISuggestedActionCategorySet, textView As ITextView) As ILightBulbSession
Parameters
- requestedActionCategories
- ISuggestedActionCategorySet
A set of suggested action categories requested.
- textView
- ITextView
The ITextView over which to create an ILightBulbSession.
Returns
A valid instance of ILightBulbSession or null if no ILightBulbSession can be created for given text view and caret position.
- Attributes
Applies to
CreateSession(ISuggestedActionCategorySet, ITextView, ITrackingPoint, ITrackingSpan, Boolean)
Caution
Use ILightBulbBroker2.CreateSession instead
Creates, but doesn't expand a 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 ^ triggerSpan, 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 triggerSpan, bool trackMouse);
[System.Obsolete("Use ILightBulbBroker2.CreateSession instead")]
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 triggerSpan, bool trackMouse);
abstract member CreateSession : Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategorySet * Microsoft.VisualStudio.Text.Editor.ITextView * Microsoft.VisualStudio.Text.ITrackingPoint * Microsoft.VisualStudio.Text.ITrackingSpan * bool -> Microsoft.VisualStudio.Language.Intellisense.ILightBulbSession
[<System.Obsolete("Use ILightBulbBroker2.CreateSession instead")>]
abstract member CreateSession : Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategorySet * Microsoft.VisualStudio.Text.Editor.ITextView * Microsoft.VisualStudio.Text.ITrackingPoint * Microsoft.VisualStudio.Text.ITrackingSpan * bool -> Microsoft.VisualStudio.Language.Intellisense.ILightBulbSession
Public Function CreateSession (requestedActionCategories As ISuggestedActionCategorySet, textView As ITextView, triggerPoint As ITrackingPoint, triggerSpan As ITrackingSpan, 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.
- triggerSpan
- ITrackingSpan
The ITrackingSpan in the text buffer for which to create an ILightBulbSession.
- 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.
- Attributes