Freigeben über


IVsContainedLanguageCodeSupport Interface

Definition

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

public interface class IVsContainedLanguageCodeSupport
public interface class IVsContainedLanguageCodeSupport
__interface IVsContainedLanguageCodeSupport
[System.Runtime.InteropServices.ComConversionLoss]
[System.Runtime.InteropServices.Guid("F386BE91-0E80-43AF-8EB6-8B829FA06282")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsContainedLanguageCodeSupport
[System.Runtime.InteropServices.ComConversionLoss]
[System.Runtime.InteropServices.Guid("F386BE91-0E80-43AF-8EB6-8B829FA06282")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsContainedLanguageCodeSupport
[<System.Runtime.InteropServices.ComConversionLoss>]
[<System.Runtime.InteropServices.Guid("F386BE91-0E80-43AF-8EB6-8B829FA06282")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsContainedLanguageCodeSupport = interface
[<System.Runtime.InteropServices.ComConversionLoss>]
[<System.Runtime.InteropServices.Guid("F386BE91-0E80-43AF-8EB6-8B829FA06282")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsContainedLanguageCodeSupport = interface
Public Interface IVsContainedLanguageCodeSupport
Attributes

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.

Methods

CreateUniqueEventName(String, String, String, String)

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

EnsureEventHandler(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.

GetBaseClassName(String, String)

Returns the base class name for the provided class.

GetCompatibleEventHandlers(String, String, String, Int32, IntPtr, IntPtr)

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

GetEventHandlerMemberID(String, String, String, String, String)

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

GetMemberNavigationPoint(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.

GetMembers(String, UInt32, Int32, IntPtr, IntPtr)

Returns a collection of members corresponding to the specified flags.

IsValidID(String, Boolean)

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

OnRenamed(ContainedLanguageRenameType, String, String)

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

Applies to