次の方法で共有


ILightBulbBroker2 Interface

Definition

Important

This API is not CLS-compliant.

Represents a LightBulb broker, which is globally responsible for managing ILightBulbSessions.

public interface class ILightBulbBroker2 : Microsoft::VisualStudio::Language::Intellisense::ILightBulbBroker
[System.CLSCompliant(false)]
public interface ILightBulbBroker2 : Microsoft.VisualStudio.Language.Intellisense.ILightBulbBroker
public interface ILightBulbBroker2 : Microsoft.VisualStudio.Language.Intellisense.ILightBulbBroker
[<System.CLSCompliant(false)>]
type ILightBulbBroker2 = interface
    interface ILightBulbBroker
type ILightBulbBroker2 = interface
    interface ILightBulbBroker
Public Interface ILightBulbBroker2
Implements ILightBulbBroker
Attributes
Implements

Remarks

This is a MEF component, and should be imported as follows: [Import] ILightBulbBroker2 lightBulbBroker = null;

Methods

CanCreateSession(ISuggestedActionCategorySet, ITextView, ITrackingPoint)

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

(Inherited from ILightBulbBroker)
CanCreateSession(ISuggestedActionCategorySet, ITextView)

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

(Inherited from ILightBulbBroker)
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, Boolean)
Obsolete.

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

(Inherited from ILightBulbBroker)
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)
Obsolete.

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

(Inherited from ILightBulbBroker)
DismissSession(ITextView)

Dismisses an active ILightBulbSession for a particular ITextView.

(Inherited from ILightBulbBroker)
GetSession(ITextView)

Gets the active ILightBulbSession for the specified ITextView.

(Inherited from ILightBulbBroker)
GetSuggestedActionCategoriesAsync(ISuggestedActionCategorySet, ITextView, CancellationToken)

Asynchronously gets an ISuggestedActionCategorySet containing all categories with applicable actions.

GetSuggestedActionCategoriesAsync(ISuggestedActionCategorySet, ITextView, ITrackingPoint, ITrackingSpan, CancellationToken)

Asynchronously gets an ISuggestedActionCategorySet containing all categories with applicable actions.

GetSuggestedActionsSources(ITextView, ITextBuffer)

Gets a list of ISuggestedActionsSources for given ITextView and ITextBuffer.

(Inherited from ILightBulbBroker)
HasSuggestedActionsAsync(ISuggestedActionCategorySet, ITextView, CancellationToken)

Asynchronously determines whether any ISuggestedActions are associated with the current caret position in a given ITextView.

(Inherited from ILightBulbBroker)
HasSuggestedActionsAsync(ISuggestedActionCategorySet, ITextView, ITrackingPoint, ITrackingSpan, CancellationToken)

Asynchronously determines whether any ISuggestedActions are associated with a given trigger point position and span in a given ITextView.

(Inherited from ILightBulbBroker)
IsLightBulbSessionActive(ITextView)

Determines whether or not an ILightBulbSession is active over the specified ITextView.

(Inherited from ILightBulbBroker)
IsSupportedContentType(IContentType)

Determines whether there is at least one ISuggestedActionsSourceProvider supporting given content type.

(Inherited from ILightBulbBroker)
TryExpandSession(ISuggestedActionCategorySet, ITextView, ITrackingPoint, ITrackingSpan, Boolean)

Tries to create and expand ILightBulbSession for the specified ITextView.

(Inherited from ILightBulbBroker)
TryExpandSession(ISuggestedActionCategorySet, ITextView)

Tries to create and expand ILightBulbSession for the specified ITextView. If the session already exists, this method expands it.

(Inherited from ILightBulbBroker)

Applies to