IVsContainedLanguageCodeSupport Interface


Provides support for code navigation, event generation, and the like.

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

public interface IVsContainedLanguageCodeSupport

System_CAPS_pubmethodCreateUniqueEventName(String, String, String, String)

Creates a unique event handler name, given the class context, name of the object instance, and the name of event.

System_CAPS_pubmethodEnsureEventHandler(String, String, String, String, UInt32, String, String, TextSpan[])

Creates an event handler given the class context, name of the object instance, name of the event, and the (unique) name of event handler, if none exists already.

System_CAPS_pubmethodGetBaseClassName(String, String)

Returns the base class name for the provided class.

System_CAPS_pubmethodGetCompatibleEventHandlers(String, String, String, Int32, IntPtr, IntPtr)

Returns a collection of existing members that match the signature of the provided event description.

System_CAPS_pubmethodGetEventHandlerMemberID(String, String, String, String, String)

Returns the unique member id of an event handler matching the provided description if exists.

System_CAPS_pubmethodGetMemberNavigationPoint(String, String, TextSpan[], UInt32)

Obtains the position (for example the starting character index, starting line, ending character index, ending line, and item ID of file) in the secondary buffer coordinates or partial class file buffer coordinates, of a given a class member, that could be cached and later used to navigate to that member.

System_CAPS_pubmethodGetMembers(String, UInt32, Int32, IntPtr, IntPtr)

Returns a collection of members corresponding to the specified flags.

System_CAPS_pubmethodIsValidID(String, Boolean)

Examines the provided ID to see if it is a valid identifier for the contained language.

System_CAPS_pubmethodOnRenamed(ContainedLanguageRenameType, String, String)

Called from a containing IVsContainedLanguageHost object indicating that a rename of a specified type was initiated.

Notes to Implementers:

Implement this interface on the same class that implements the IVsContainedLanguage interface to support code navigation, generating events, and getting access to various elements of the contained language code block.

Notes to Callers:

Obtain this interface by calling the QueryInterface method on an IVsContainedLanguage object or by casting the IVsContainedLanguage object to the IVsContainedLanguageCodeSupport interface.

Return to top