다음을 통해 공유


LanguageService.UpdateLanguageContext Method

Definition

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

public:
 virtual void UpdateLanguageContext(Microsoft::VisualStudio::TextManager::Interop::LanguageContextHint hint, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ buffer, cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ ptsSelection, Microsoft::VisualStudio::Shell::Interop::IVsUserContext ^ context);
public:
 virtual void UpdateLanguageContext(Microsoft::VisualStudio::TextManager::Interop::LanguageContextHint hint, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ buffer, Platform::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ ptsSelection, Microsoft::VisualStudio::Shell::Interop::IVsUserContext ^ context);
 virtual void UpdateLanguageContext(Microsoft::VisualStudio::TextManager::Interop::LanguageContextHint hint, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines const & buffer, std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & ptsSelection, Microsoft::VisualStudio::Shell::Interop::IVsUserContext const & context);
public virtual void UpdateLanguageContext (Microsoft.VisualStudio.TextManager.Interop.LanguageContextHint hint, Microsoft.VisualStudio.TextManager.Interop.IVsTextLines buffer, Microsoft.VisualStudio.TextManager.Interop.TextSpan[] ptsSelection, Microsoft.VisualStudio.Shell.Interop.IVsUserContext context);
abstract member UpdateLanguageContext : Microsoft.VisualStudio.TextManager.Interop.LanguageContextHint * Microsoft.VisualStudio.TextManager.Interop.IVsTextLines * Microsoft.VisualStudio.TextManager.Interop.TextSpan[] * Microsoft.VisualStudio.Shell.Interop.IVsUserContext -> unit
override this.UpdateLanguageContext : Microsoft.VisualStudio.TextManager.Interop.LanguageContextHint * Microsoft.VisualStudio.TextManager.Interop.IVsTextLines * Microsoft.VisualStudio.TextManager.Interop.TextSpan[] * Microsoft.VisualStudio.Shell.Interop.IVsUserContext -> unit
Public Overridable Sub UpdateLanguageContext (hint As LanguageContextHint, buffer As IVsTextLines, ptsSelection As TextSpan(), context As IVsUserContext)

Parameters

hint
LanguageContextHint

[in] A set of flags from the LanguageContextHint enumeration.

buffer
IVsTextLines

[in] The IVsTextLines object holding the source.

ptsSelection
TextSpan[]

[in] A single TextSpan object describing the selected range of text (or the current caret position).

context
IVsUserContext

[in] An IVsUserContext object that is to be updated.

Remarks

This method is called to allow the language service to update the given user context.

The base method does nothing.

Applies to