共用方式為


IVsFileChangeEvents.FilesChanged(UInt32, String[], UInt32[]) Method

Definition

Notifies clients of changes made to one or more files.

public:
 int FilesChanged(System::UInt32 cChanges, cli::array <System::String ^> ^ rgpszFile, cli::array <System::UInt32> ^ rggrfChange);
public:
 int FilesChanged(unsigned int cChanges, Platform::Array <Platform::String ^> ^ rgpszFile, Platform::Array <unsigned int> ^ rggrfChange);
int FilesChanged(unsigned int cChanges, std::Array <std::wstring const &> const & rgpszFile, std::Array <unsigned int> const & rggrfChange);
public int FilesChanged (uint cChanges, string[] rgpszFile, uint[] rggrfChange);
abstract member FilesChanged : uint32 * string[] * uint32[] -> int
Public Function FilesChanged (cChanges As UInteger, rgpszFile As String(), rggrfChange As UInteger()) As Integer

Parameters

cChanges
UInt32

[in] Number of files changed.

rgpszFile
String[]

[in, size_is(cChanges)] Array of file names.

rggrfChange
UInt32[]

[in, size_is(cChanges)] Array of flags indicating the type of changes. See _VSFILECHANGEFLAGS.

Returns

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsFileChangeEvents::FilesChanged(  
   [in] DWORD cChanges,  
   [in, size_is(cChanges)] LPCOLESTR rgpszFile[],  
   [in, size_is(cChanges)] VSFILECHANGEFLAGS rggrfChange[]  
);  

Checks for read-only attribute changes and content changes. For read-only attribute changes, the display is updated immediately. For file content changes, the user is prompted to reload the file.

Applies to