Aracılığıyla paylaş


ILightBulbBroker.CanCreateSession Method

Definition

Overloads

CanCreateSession(ISuggestedActionCategorySet, ITextView)

Determines whether a ILightBulbSession can be created for a given ITextView with current caret position as a trigger point.

CanCreateSession(ISuggestedActionCategorySet, ITextView, ITrackingPoint)

Determines whether a ILightBulbSession can be created for a given ITextView at given trigger point.

CanCreateSession(ISuggestedActionCategorySet, ITextView)

Determines whether a ILightBulbSession can be created for a given ITextView with current caret position as a trigger point.

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

Parameters

requestedActionCategories
ISuggestedActionCategorySet

A set of suggested action categories requested.

textView
ITextView

The ITextView over which to determine if an ILightBulbSession can be created.

Returns

true if a session can be created, false otherwise.

Applies to

CanCreateSession(ISuggestedActionCategorySet, ITextView, ITrackingPoint)

Determines whether a ILightBulbSession can be created for a given ITextView at given trigger point.

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

Parameters

requestedActionCategories
ISuggestedActionCategorySet

A set of suggested action categories requested.

textView
ITextView

The ITextView over which to determine if an ILightBulbSession can be created.

triggerPoint
ITrackingPoint

The ITrackingPoint in the text buffer at which to determine if an ILightBulbSession can be created.

Returns

true if a session can be created, false otherwise.

Applies to