Share via


LanguageService.SetUserContextDirty Method

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

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 Sub SetUserContextDirty ( _
    fileName As String _
)
public void SetUserContextDirty(
    string fileName
)
public:
void SetUserContextDirty(
    String^ fileName
)
member SetUserContextDirty : 
        fileName:string -> unit
public function SetUserContextDirty(
    fileName : String
)

Parameters

  • fileName
    Type: String

    [in] The file name of the source buffer for which to mark the user context dirty.

Remarks

The user context is used to provide context-sensitive help. This method is called by default from the base OnParseComplete method, which itself is called whenever a parse operation is performed with the parse reason Check. The assumption here is if a Check parse is performed, the user context is probably no longer accurate and should be marked dirty. This forces Visual Studio to update the context at the next opportunity.

.NET Framework Security

See Also

Reference

LanguageService Class

Microsoft.VisualStudio.Package Namespace