ISmartTagSourceProvider Interface

 
Note: This API is now obsolete.

Defines a provider of a smart tag source.

Smart tags are deprecated in favor of light bulbs. See T:Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionSourceProvider for a replacement.

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

[ObsoleteAttribute("This API is deprecated in this version of the Visual Studio SDK, and will be retired in a future version. To find out more about the replacement API, Light Bulb, refer to http://go.microsoft.com/fwlink/?LinkId=394601.")]
public interface ISmartTagSourceProvider

NameDescription
System_CAPS_pubmethodTryCreateSmartTagSource(ITextBuffer)

Attempts to create a smart tag source for the specified buffer.

Smart tags are deprecated in favor of light bulbs. See T:Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionSourceProvider for a replacement.

This is a MEF component part, and should be exported with the following attribute:

[Export(typeof(ISmartTagSourceProvider))] 
[Order…] 
[Name…] 
[ContentType...] 

You specify the ContentTypeAttribute so that the source provider needs to create sources only for buffers of the content types it recognizes, and OrderAttribute to specify the order in which the sources are called.

For an example of the use of this interface, see Walkthrough: Displaying Light Bulb Suggestions.

Return to top
Show: