LanguageService LanguageService LanguageService LanguageService Class

Definition

Important

This API is not CLS-compliant.

This is the base class for a language service that supplies language features including syntax highlighting, brace matching, auto-completion, IntelliSense support, and code snippet expansion.

public ref class LanguageService abstract : IDisposable, Microsoft::VisualStudio::OLE::Interop::IObjectWithSite, Microsoft::VisualStudio::OLE::Interop::IServiceProvider, Microsoft::VisualStudio::Shell::Interop::IVsDebuggerEvents, Microsoft::VisualStudio::TextManager::Interop::IVsAutoOutliningClient, Microsoft::VisualStudio::TextManager::Interop::IVsFormatFilterProvider, Microsoft::VisualStudio::TextManager::Interop::IVsLanguageContextProvider, Microsoft::VisualStudio::TextManager::Interop::IVsLanguageDebugInfo, Microsoft::VisualStudio::TextManager::Interop::IVsLanguageInfo, Microsoft::VisualStudio::TextManager::Interop::IVsProvideColorableItems, System::ComponentModel::ISynchronizeInvoke
[System.CLSCompliant(false)]
[System.Runtime.InteropServices.ComVisible(true)]
public abstract class LanguageService : IDisposable, Microsoft.VisualStudio.OLE.Interop.IObjectWithSite, Microsoft.VisualStudio.OLE.Interop.IServiceProvider, Microsoft.VisualStudio.Shell.Interop.IVsDebuggerEvents, Microsoft.VisualStudio.TextManager.Interop.IVsAutoOutliningClient, Microsoft.VisualStudio.TextManager.Interop.IVsFormatFilterProvider, Microsoft.VisualStudio.TextManager.Interop.IVsLanguageContextProvider, Microsoft.VisualStudio.TextManager.Interop.IVsLanguageDebugInfo, Microsoft.VisualStudio.TextManager.Interop.IVsLanguageInfo, Microsoft.VisualStudio.TextManager.Interop.IVsProvideColorableItems, System.ComponentModel.ISynchronizeInvoke
type LanguageService = class
    interface IDisposable
    interface IVsLanguageInfo
    interface IVsLanguageDebugInfo
    interface IVsProvideColorableItems
    interface IVsLanguageContextProvider
    interface IServiceProvider
    interface IObjectWithSite
    interface ISynchronizeInvoke
    interface IVsDebuggerEvents
    interface IVsFormatFilterProvider
    interface IVsAutoOutliningClient
Public MustInherit Class LanguageService
Implements IDisposable, IObjectWithSite, IServiceProvider, ISynchronizeInvoke, IVsAutoOutliningClient, IVsDebuggerEvents, IVsFormatFilterProvider, IVsLanguageContextProvider, IVsLanguageDebugInfo, IVsLanguageInfo, IVsProvideColorableItems
Inheritance
LanguageServiceLanguageServiceLanguageServiceLanguageService
Attributes
Implements

Examples

The following example shows how to register and initialize your language service for your package. Note: MyLanguageService is derived from the LanguageService class.

using System.ComponentModel.Design;  
using Microsoft.VisualStudio.Shell;  

namespace MyLanguagePackage  
{  
    /////////////////////////////////////////////  
    // Other package registration details go here  
    /////////////////////////////////////////////  

    // Offer a new language service  
    [ProvideServiceAttribute(typeof(MyLanguageService),  
                                       ServiceName = "My Language Service")]  

    // Register the language service with Visual Studio.  
    // "106" is the resource ID in the satellite DLL to the localized language name.  
    [ProvideLanguageServiceAttribute(typeof(MyLanguageService),"My Language",106)]  

    // Associate a file extension with our language service.  
    [ProvideLanguageExtensionAttribute(typeof(MyLanguageService), ".myext")]  

    class MyLanguagePackage : Package  
    {  
        protected override void Initialize()  
        {  
            base.Initialize();  

            IServiceContainer serviceContainer = this as IServiceContainer;  
            MyLanguageService languageService = new MyLanguageService();  
            languageService.SetSite(this);  
            serviceContainer.AddService(typeof(MyLanguageService),  
                                        languageService,  
                                        true);  
        }  
    }  
}  

Remarks

Visual Studio uses language services to provide support for code languages. A language service is registered with Visual Studio when the language service package is installed. Part of this registration process associates a file extension with a language service so any time a file with that extension is loaded, the language service is also loaded.

The LanguageService class is the base class for your language service. Visual Studio instantiates the VSPackage implementing your language service and calls the SetSite method on the VSPackage. In the implementation of this method, the Initialize method on the Package base class is called. Override the Initialize method to instantiate your language service. Remember to call the SetSite method on your language service after instantiation.

Notes to Inheritors

Derive a class from this class to create your own language service. You must also, at the very least, implement a parser that implements the IScanner interface. All features of a language service are based on this parser.

The following methods and property are marked as abstract and must be implemented in a class derived tom the LanguageService class:

Method/Property to be Implemented
Description
GetLanguagePreferences() A method that returns a LanguagePreferences object.
GetScanner(IVsTextLines) A method that returns an IScanner object.
ParseSource(ParseRequest) A method that parses the source.
Name A read-only property that returns the language name

If you do not intend to support the ValidateBreakpointLocation(IVsTextBuffer, Int32, Int32, TextSpan[]) but your language does support breakpoints, you must override the ValidateBreakpointLocation(IVsTextBuffer, Int32, Int32, TextSpan[]) method and return a span that contains the specified line and column; otherwise, breakpoints cannot be set anywhere except line 1. You can return E_NOTIMPL to indicate that you do not otherwise support this method but the span must always be set. The example in the ValidateBreakpointLocation(IVsTextBuffer, Int32, Int32, TextSpan[]) method shows how this can be done.

Notes to Callers

Register your language service when installing your VSPackage (this could be a package dedicated to your language service or it could be a project package that also supplies a language service). You instantiate your own language service during your package initialization. Visual Studio interacts with your language service to display code written in the language supported by your language service. See the example below for how this language registration can be done.

Constructors

LanguageService() LanguageService() LanguageService() LanguageService()

Initializes a new instance of the LanguageService class.

Properties

InvokeRequired InvokeRequired InvokeRequired InvokeRequired

Determines if a method must be invoked across a thread boundary.

IsActive IsActive IsActive IsActive

Determines whether the language service is connected to the current view and therefore is active.

IsDebugging IsDebugging IsDebugging IsDebugging

Determines if the debugger is active.

IsParsing IsParsing IsParsing IsParsing

Determines if a background parse is in progress.

LastActiveTextView LastActiveTextView LastActiveTextView LastActiveTextView

Returns the last active text view associated with this language service.

MainThreadId MainThreadId MainThreadId MainThreadId

Returns the id of the thread this language service is running on.

Name Name Name Name

Returns the name of the language (for example, "C++" or "HTML").

ParseThreadIsAlive ParseThreadIsAlive ParseThreadIsAlive ParseThreadIsAlive

Determines whether the parse thread is alive.

ParseThreadPaused ParseThreadPaused ParseThreadPaused ParseThreadPaused

Determines whether the parse thread is alive.

Preferences Preferences Preferences Preferences

Provides access to the language service preferences.

Site Site Site Site

Returns the service provider given to this language service.

Methods

AbortBackgroundParse() AbortBackgroundParse() AbortBackgroundParse() AbortBackgroundParse()

Stops the parse thread.

AddCodeWindowManager(CodeWindowManager) AddCodeWindowManager(CodeWindowManager) AddCodeWindowManager(CodeWindowManager) AddCodeWindowManager(CodeWindowManager)

Adds a code window manager to the language service.

BeginInvoke(Delegate, Object[]) BeginInvoke(Delegate, Object[]) BeginInvoke(Delegate, Object[]) BeginInvoke(Delegate, Object[])

Invokes a method on another thread.

BeginParse(ParseRequest, ParseResultHandler) BeginParse(ParseRequest, ParseResultHandler) BeginParse(ParseRequest, ParseResultHandler) BeginParse(ParseRequest, ParseResultHandler)

Starts a parse operation on a background thread.

CanStopThread(Source) CanStopThread(Source) CanStopThread(Source) CanStopThread(Source)

Determines whether the thread can be stopped.

CreateCodeWindowManager(IVsCodeWindow, Source) CreateCodeWindowManager(IVsCodeWindow, Source) CreateCodeWindowManager(IVsCodeWindow, Source) CreateCodeWindowManager(IVsCodeWindow, Source)

Instantiates a CodeWindowManager class.

CreateDocumentProperties(CodeWindowManager) CreateDocumentProperties(CodeWindowManager) CreateDocumentProperties(CodeWindowManager) CreateDocumentProperties(CodeWindowManager)

Instantiates a Microsoft.Office.Core.DocumentProperties class.

CreateDropDownHelper(IVsTextView) CreateDropDownHelper(IVsTextView) CreateDropDownHelper(IVsTextView) CreateDropDownHelper(IVsTextView)

Instantiates a TypeAndMemberDropdownBars class.

CreateExpansionFunction(ExpansionProvider, String) CreateExpansionFunction(ExpansionProvider, String) CreateExpansionFunction(ExpansionProvider, String) CreateExpansionFunction(ExpansionProvider, String)

Instantiates an ExpansionFunction class.

CreateExpansionProvider(Source) CreateExpansionProvider(Source) CreateExpansionProvider(Source) CreateExpansionProvider(Source)

Instantiates an ExpansionProvider class.

CreateParseRequest(Source, Int32, Int32, TokenInfo, String, String, ParseReason, IVsTextView) CreateParseRequest(Source, Int32, Int32, TokenInfo, String, String, ParseReason, IVsTextView) CreateParseRequest(Source, Int32, Int32, TokenInfo, String, String, ParseReason, IVsTextView) CreateParseRequest(Source, Int32, Int32, TokenInfo, String, String, ParseReason, IVsTextView)

Creates a request to satisfy the given reason for parsing that is then passed on to the parser.

CreateSource(IVsTextLines) CreateSource(IVsTextLines) CreateSource(IVsTextLines) CreateSource(IVsTextLines)

Instantiates a Source class.

CreateViewFilter(CodeWindowManager, IVsTextView) CreateViewFilter(CodeWindowManager, IVsTextView) CreateViewFilter(CodeWindowManager, IVsTextView) CreateViewFilter(CodeWindowManager, IVsTextView)

Instantiates a ViewFilter class.

CurFileExtensionFormat(String) CurFileExtensionFormat(String) CurFileExtensionFormat(String) CurFileExtensionFormat(String)

Returns the index into the file extension list that matches the extension of the specified file name.

DispatchCommand(Guid, UInt32, IntPtr, IntPtr) DispatchCommand(Guid, UInt32, IntPtr, IntPtr) DispatchCommand(Guid, UInt32, IntPtr, IntPtr) DispatchCommand(Guid, UInt32, IntPtr, IntPtr)

Called to execute the specified command.

DispatchCommand(Guid, UInt32, UInt32, IntPtr, IntPtr) DispatchCommand(Guid, UInt32, UInt32, IntPtr, IntPtr) DispatchCommand(Guid, UInt32, UInt32, IntPtr, IntPtr) DispatchCommand(Guid, UInt32, UInt32, IntPtr, IntPtr)

Called to execute the specified command.

Dispose() Dispose() Dispose() Dispose()

Called when the language service object is being destroyed.

EndInvoke(IAsyncResult) EndInvoke(IAsyncResult) EndInvoke(IAsyncResult) EndInvoke(IAsyncResult)

Retrieves the result of an asynchronous call started by BeginInvoke(Delegate, Object[]).

GetCodeWindowManager(IVsCodeWindow, IVsCodeWindowManager) GetCodeWindowManager(IVsCodeWindow, IVsCodeWindowManager) GetCodeWindowManager(IVsCodeWindow, IVsCodeWindowManager) GetCodeWindowManager(IVsCodeWindow, IVsCodeWindowManager)

Instantiates a CodeWindowManager class.

GetCodeWindowManagerForSource(Source) GetCodeWindowManagerForSource(Source) GetCodeWindowManagerForSource(Source) GetCodeWindowManagerForSource(Source)

Returns the CodeWindowManager object associated with the specified Source object.

GetCodeWindowManagerForView(IVsTextView) GetCodeWindowManagerForView(IVsTextView) GetCodeWindowManagerForView(IVsTextView) GetCodeWindowManagerForView(IVsTextView)

Returns the CodeWindowManager associated with the specified IVsTextView object.

GetColorableItem(Int32, IVsColorableItem) GetColorableItem(Int32, IVsColorableItem) GetColorableItem(Int32, IVsColorableItem) GetColorableItem(Int32, IVsColorableItem)

Returns the requested IVsColorableItem object.

GetColorizer(IVsTextLines) GetColorizer(IVsTextLines) GetColorizer(IVsTextLines) GetColorizer(IVsTextLines)

Iinstantiates a Colorizer class.

GetColorizer(IVsTextLines, IVsColorizer) GetColorizer(IVsTextLines, IVsColorizer) GetColorizer(IVsTextLines, IVsColorizer) GetColorizer(IVsTextLines, IVsColorizer)

Returns the colorizer associated with a Source object that contains the given IVsTextLines object.

GetFileExtensions(String) GetFileExtensions(String) GetFileExtensions(String) GetFileExtensions(String)

Returns a string containing the file extensions associated with this language.

GetFormatFilterList() GetFormatFilterList() GetFormatFilterList() GetFormatFilterList()

Returns a list of file extension filters suitable for a Save As dialog box.

GetImageList() GetImageList() GetImageList() GetImageList()

Returns an image list containing glyphs associated with the language service.

GetItemCount(Int32) GetItemCount(Int32) GetItemCount(Int32) GetItemCount(Int32)

Returns the number of custom colorable items supported by the language service.

GetIVsDebugger() GetIVsDebugger() GetIVsDebugger() GetIVsDebugger()

Returns an IVsDebugger object representing the currently available debugger in order to listen for debugger events.

GetIVsTextMacroHelperIfRecordingOn() GetIVsTextMacroHelperIfRecordingOn() GetIVsTextMacroHelperIfRecordingOn() GetIVsTextMacroHelperIfRecordingOn()

Returns an IVsTextMacroHelper object if macro recording is turned on.

GetLanguageID(IVsTextBuffer, Int32, Int32, Guid) GetLanguageID(IVsTextBuffer, Int32, Int32, Guid) GetLanguageID(IVsTextBuffer, Int32, Int32, Guid) GetLanguageID(IVsTextBuffer, Int32, Int32, Guid)

Returns the language GUID of the language service.

GetLanguageName(String) GetLanguageName(String) GetLanguageName(String) GetLanguageName(String)

Returns the name of the language this language service handles.

GetLanguagePreferences() GetLanguagePreferences() GetLanguagePreferences() GetLanguagePreferences()

Returns a LanguagePreferences object for this language service.

GetLanguageServiceGuid() GetLanguageServiceGuid() GetLanguageServiceGuid() GetLanguageServiceGuid()

Returns the GUID of the language service.

GetLocationOfName(String, String, TextSpan[]) GetLocationOfName(String, String, TextSpan[]) GetLocationOfName(String, String, TextSpan[]) GetLocationOfName(String, String, TextSpan[])

Obsolete method that always returns E_NOTIMPL.

GetNameOfLocation(IVsTextBuffer, Int32, Int32, String, Int32) GetNameOfLocation(IVsTextBuffer, Int32, Int32, String, Int32) GetNameOfLocation(IVsTextBuffer, Int32, Int32, String, Int32) GetNameOfLocation(IVsTextBuffer, Int32, Int32, String, Int32)

Returns the name of the enclosing element that contains the given position.

GetOrCreateSource(IVsTextLines) GetOrCreateSource(IVsTextLines) GetOrCreateSource(IVsTextLines) GetOrCreateSource(IVsTextLines)

Gets the source if it is available, otherwise creates one.

GetParseResult() GetParseResult() GetParseResult() GetParseResult()

Gets the result of the parse operation.

GetPrimaryViewForSource(Source) GetPrimaryViewForSource(Source) GetPrimaryViewForSource(Source) GetPrimaryViewForSource(Source)

Calls GetPrimaryView(IVsTextView) on the code window manager for the source.

GetProximityExpressions(IVsTextBuffer, Int32, Int32, Int32, IVsEnumBSTR) GetProximityExpressions(IVsTextBuffer, Int32, Int32, Int32, IVsEnumBSTR) GetProximityExpressions(IVsTextBuffer, Int32, Int32, Int32, IVsEnumBSTR) GetProximityExpressions(IVsTextBuffer, Int32, Int32, Int32, IVsEnumBSTR)

Returns a list of expressions to be evaluated and shown in the Autos window, for a given span of lines.

GetScanner(IVsTextLines) GetScanner(IVsTextLines) GetScanner(IVsTextLines) GetScanner(IVsTextLines)

Returns a single instantiation of a parser.

GetService(Type) GetService(Type) GetService(Type) GetService(Type)

Returns a service object that can be cast to a specific interface.

GetSite(Guid, IntPtr) GetSite(Guid, IntPtr) GetSite(Guid, IntPtr) GetSite(Guid, IntPtr)

Returns an unmarshaled pointer to a requested interface.

GetSource(String) GetSource(String) GetSource(String) GetSource(String)

Returns an existing Source object given a file name.

GetSource(IVsTextLines) GetSource(IVsTextLines) GetSource(IVsTextLines) GetSource(IVsTextLines)

Returns an existing Source object that contains the specified buffer of source.

GetSource(IVsTextView) GetSource(IVsTextView) GetSource(IVsTextView) GetSource(IVsTextView)

Returns an existing Source object that contains the source file shown in the specified text view.

GetSources() GetSources() GetSources() GetSources()

Returns a collection of Source objects maintained by the language service.

Initialize() Initialize() Initialize() Initialize()

Called to initialize the language service.

Invoke(Delegate, Object[]) Invoke(Delegate, Object[]) Invoke(Delegate, Object[]) Invoke(Delegate, Object[])

Called to invoke a task specified by the given delegate.

IsMacroRecordingOn() IsMacroRecordingOn() IsMacroRecordingOn() IsMacroRecordingOn()

Called to determine if macro recording is turned on.

IsMappedLocation(IVsTextBuffer, Int32, Int32) IsMappedLocation(IVsTextBuffer, Int32, Int32) IsMappedLocation(IVsTextBuffer, Int32, Int32) IsMappedLocation(IVsTextBuffer, Int32, Int32)

Called to determine if the specified location in the given source file references code in another file.

IsSourceOpen(Source) IsSourceOpen(Source) IsSourceOpen(Source) IsSourceOpen(Source)

Determines whether or not the source file is open.

OnActiveViewChanged(IVsTextView) OnActiveViewChanged(IVsTextView) OnActiveViewChanged(IVsTextView) OnActiveViewChanged(IVsTextView)

Called when the current view has changed to a different view.

OnCaretMoved(CodeWindowManager, IVsTextView, Int32, Int32) OnCaretMoved(CodeWindowManager, IVsTextView, Int32, Int32) OnCaretMoved(CodeWindowManager, IVsTextView, Int32, Int32) OnCaretMoved(CodeWindowManager, IVsTextView, Int32, Int32)

Called when the caret has moved.

OnChangesCommitted(UInt32, TextSpan[]) OnChangesCommitted(UInt32, TextSpan[]) OnChangesCommitted(UInt32, TextSpan[]) OnChangesCommitted(UInt32, TextSpan[])

Called when changes generated by an auto-complete or code snippet expansion operation is committed to the buffer.

OnCloseSource(Source) OnCloseSource(Source) OnCloseSource(Source) OnCloseSource(Source)

Called to close the specified Source object.

OnIdle(Boolean) OnIdle(Boolean) OnIdle(Boolean) OnIdle(Boolean)

Called when no other events need to be handled.

OnModeChange(DBGMODE) OnModeChange(DBGMODE) OnModeChange(DBGMODE) OnModeChange(DBGMODE)

Called whenever the debug mode has changed while debugging.

OnParseAborted() OnParseAborted() OnParseAborted() OnParseAborted()

Does nothing.

OnParseComplete(ParseRequest) OnParseComplete(ParseRequest) OnParseComplete(ParseRequest) OnParseComplete(ParseRequest)

Called when a background parse has been completed.

OpenDocument(String) OpenDocument(String) OpenDocument(String) OpenDocument(String)

Opens the specified file.

ParseSource(ParseRequest) ParseSource(ParseRequest) ParseSource(ParseRequest) ParseSource(ParseRequest)

Parses the source based on the specified ParseRequest object.

QueryInvalidEncoding(__VSTFF, String) QueryInvalidEncoding(__VSTFF, String) QueryInvalidEncoding(__VSTFF, String) QueryInvalidEncoding(__VSTFF, String)

Determines if the specified source format is valid or not.

QueryService(Guid, Guid, IntPtr) QueryService(Guid, Guid, IntPtr) QueryService(Guid, Guid, IntPtr) QueryService(Guid, Guid, IntPtr)

Returns the request interface from the specified service.

QueryWaitForAutoOutliningCallback(Int32) QueryWaitForAutoOutliningCallback(Int32) QueryWaitForAutoOutliningCallback(Int32) QueryWaitForAutoOutliningCallback(Int32)

Determines whether to wait for the auto-outlining callback to finish.

RemoveCodeWindowManager(CodeWindowManager) RemoveCodeWindowManager(CodeWindowManager) RemoveCodeWindowManager(CodeWindowManager) RemoveCodeWindowManager(CodeWindowManager)

Called when the view associated with the specified CodeWindowManager is closed.

ResolveName(String, UInt32, IVsEnumDebugName) ResolveName(String, UInt32, IVsEnumDebugName) ResolveName(String, UInt32, IVsEnumDebugName) ResolveName(String, UInt32, IVsEnumDebugName)

Returns a list of method names that match the given name modified by the specified flags.

ScrollToEnd(IVsWindowFrame) ScrollToEnd(IVsWindowFrame) ScrollToEnd(IVsWindowFrame) ScrollToEnd(IVsWindowFrame)

Updates the view in the specified window frame to show the end of the source file.

ScrollToEnd(IVsTextView) ScrollToEnd(IVsTextView) ScrollToEnd(IVsTextView) ScrollToEnd(IVsTextView)

Updates the specified view to show the end of the source file.

SetSite(Object) SetSite(Object) SetSite(Object) SetSite(Object)

Called to set or site the service provider for this language service.

SetUserContextDirty(String) SetUserContextDirty(String) SetUserContextDirty(String) SetUserContextDirty(String)

Marks the user context as dirty in the specified source buffer.

SynchronizeDropdowns() SynchronizeDropdowns() SynchronizeDropdowns() SynchronizeDropdowns()

Called to update a drop-down bar based on the current caret position.

UpdateLanguageContext(LanguageContextHint, IVsTextLines, TextSpan[], IVsUserContext) UpdateLanguageContext(LanguageContextHint, IVsTextLines, TextSpan[], IVsUserContext) UpdateLanguageContext(LanguageContextHint, IVsTextLines, TextSpan[], IVsUserContext) UpdateLanguageContext(LanguageContextHint, IVsTextLines, TextSpan[], IVsUserContext)

Updates the current user help context in a selected region of the given source.

ValidateBreakpointLocation(IVsTextBuffer, Int32, Int32, TextSpan[]) ValidateBreakpointLocation(IVsTextBuffer, Int32, Int32, TextSpan[]) ValidateBreakpointLocation(IVsTextBuffer, Int32, Int32, TextSpan[]) ValidateBreakpointLocation(IVsTextBuffer, Int32, Int32, TextSpan[])

Called to determine if the given location can have a breakpoint applied to it.

Explicit Interface Implementations

IVsFormatFilterProvider.CurFileExtensionFormat(String, UInt32) IVsFormatFilterProvider.CurFileExtensionFormat(String, UInt32) IVsFormatFilterProvider.CurFileExtensionFormat(String, UInt32) IVsFormatFilterProvider.CurFileExtensionFormat(String, UInt32)

Returns the index into the file extension list that matches the extension of the specified file name.

IVsFormatFilterProvider.GetFormatFilterList(String) IVsFormatFilterProvider.GetFormatFilterList(String) IVsFormatFilterProvider.GetFormatFilterList(String) IVsFormatFilterProvider.GetFormatFilterList(String)

Returns a list of file extension filters suitable for a Save As dialog box.

IVsFormatFilterProvider.QueryInvalidEncoding(UInt32, String) IVsFormatFilterProvider.QueryInvalidEncoding(UInt32, String) IVsFormatFilterProvider.QueryInvalidEncoding(UInt32, String) IVsFormatFilterProvider.QueryInvalidEncoding(UInt32, String)

Determines if the specified source format is valid or not.

IVsLanguageContextProvider.UpdateLanguageContext(UInt32, IVsTextLines, TextSpan[], Object) IVsLanguageContextProvider.UpdateLanguageContext(UInt32, IVsTextLines, TextSpan[], Object) IVsLanguageContextProvider.UpdateLanguageContext(UInt32, IVsTextLines, TextSpan[], Object) IVsLanguageContextProvider.UpdateLanguageContext(UInt32, IVsTextLines, TextSpan[], Object)

Updates the current user help context given a selected region of the given source.

Extension Methods

FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>)
FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>)

Microsoft internal use only.

FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>)
FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>)
IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>)

Microsoft internal use only.

QueryService(IServiceProvider, Guid) QueryService(IServiceProvider, Guid) QueryService(IServiceProvider, Guid) QueryService(IServiceProvider, Guid)

Gets a service exposed by a service provider based on its service type.

QueryService<TService>(IServiceProvider) QueryService<TService>(IServiceProvider) QueryService<TService>(IServiceProvider) QueryService<TService>(IServiceProvider)

Gets a service exposed by a service provider based on its service type.

Applies to