LanguageService.UpdateLanguageContext Method
Updates the current user help context in a selected region of the given source.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Syntax
'Declaration
Public Overridable Sub UpdateLanguageContext ( _
hint As LanguageContextHint, _
buffer As IVsTextLines, _
ptsSelection As TextSpan(), _
context As IVsUserContext _
)
public virtual void UpdateLanguageContext(
LanguageContextHint hint,
IVsTextLines buffer,
TextSpan[] ptsSelection,
IVsUserContext context
)
public:
virtual void UpdateLanguageContext(
LanguageContextHint hint,
IVsTextLines^ buffer,
array<TextSpan>^ ptsSelection,
IVsUserContext^ context
)
abstract UpdateLanguageContext :
hint:LanguageContextHint *
buffer:IVsTextLines *
ptsSelection:TextSpan[] *
context:IVsUserContext -> unit
override UpdateLanguageContext :
hint:LanguageContextHint *
buffer:IVsTextLines *
ptsSelection:TextSpan[] *
context:IVsUserContext -> unit
public function UpdateLanguageContext(
hint : LanguageContextHint,
buffer : IVsTextLines,
ptsSelection : TextSpan[],
context : IVsUserContext
)
Parameters
hint
Type: Microsoft.VisualStudio.TextManager.Interop.LanguageContextHint[in] A set of flags from the LanguageContextHint enumeration.
buffer
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextLines[in] The IVsTextLines object holding the source.
ptsSelection
Type: array<Microsoft.VisualStudio.TextManager.Interop.TextSpan[][in] A single TextSpan object describing the selected range of text (or the current caret position).
context
Type: Microsoft.VisualStudio.Shell.Interop.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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.