共用方式為


IVsIntellisenseProjectEventSink.OnCodeFileChange(String, String) Method

Definition

Called when the source code file changes.

public:
 int OnCodeFileChange(System::String ^ pszOldCodeFile, System::String ^ pszNewCodeFile);
public:
 int OnCodeFileChange(Platform::String ^ pszOldCodeFile, Platform::String ^ pszNewCodeFile);
int OnCodeFileChange(std::wstring const & pszOldCodeFile, std::wstring const & pszNewCodeFile);
public int OnCodeFileChange (string pszOldCodeFile, string pszNewCodeFile);
abstract member OnCodeFileChange : string * string -> int
Public Function OnCodeFileChange (pszOldCodeFile As String, pszNewCodeFile As String) As Integer

Parameters

pszOldCodeFile
String

Path to the old code file.

pszNewCodeFile
String

Path to the new code file.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Applies to