ISmartTagSourceProvider Interface
Defines a provider of a smart tag source.
Namespace: Microsoft.VisualStudio.Language.Intellisense
Assembly: Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)
Syntax
'Declaration
Public Interface ISmartTagSourceProvider
public interface ISmartTagSourceProvider
public interface class ISmartTagSourceProvider
type ISmartTagSourceProvider = interface end
public interface ISmartTagSourceProvider
The ISmartTagSourceProvider type exposes the following members.
Methods
Name | Description | |
---|---|---|
TryCreateSmartTagSource | Attempts to create a smart tag source for the specified buffer. |
Top
Remarks
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.
Examples
For an example of the use of this interface, see Walkthrough: Displaying SmartTags.