Partilhar via


LanguageService.SetUserContextDirty(String) Method

Definition

Call this method if you want UpdateLanguageContext to be called again.

public:
 void SetUserContextDirty(System::String ^ fileName);
public:
 void SetUserContextDirty(Platform::String ^ fileName);
void SetUserContextDirty(std::wstring const & fileName);
public void SetUserContextDirty (string fileName);
member this.SetUserContextDirty : string -> unit
Public Sub SetUserContextDirty (fileName As String)

Parameters

fileName
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.

Applies to