Export (0) Print
Expand All

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

The IVsContainedLanguageCodeSupport type exposes the following members.

Public methodCreateUniqueEventNameCreates a unique event handler name, given the class context, name of the object instance, and the name of event.
Public methodEnsureEventHandlerCreates 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.
Public methodGetBaseClassNameReturns the base class name for the provided class.
Public methodGetCompatibleEventHandlersReturns a collection of existing members that match the signature of the provided event description.
Public methodGetEventHandlerMemberIDReturns the unique member id of an event handler matching the provided description if exists.
Public methodGetMemberNavigationPointObtains 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.
Public methodGetMembersReturns a collection of members corresponding to the specified flags.
Public methodIsValidIDExamines the provided ID to see if it is a valid identifier for the contained language.
Public methodOnRenamedCalled 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.

© 2014 Microsoft