ILightBulbBroker::CanCreateSession Method (ISuggestedActionCategorySet^, ITextView^)

Visual Studio 2015
 

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

Namespace:   Microsoft.VisualStudio.Language.Intellisense
Assembly:  Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)

bool CanCreateSession(
	ISuggestedActionCategorySet^ requestedActionCategories,
	ITextView^ textView
)

Parameters

requestedActionCategories
Type: Microsoft.VisualStudio.Language.Intellisense::ISuggestedActionCategorySet^

A set of suggested action categories.

textView
Type: Microsoft.VisualStudio.Text.Editor::ITextView^

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

Return Value

Type: System::Boolean

True if a session can be created, false otherwise.

Return to top
Show: