Partager via


IVsFileChangeEvents.FilesChanged Method

Notifies clients of changes made to one or more files.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaration
Function FilesChanged ( _
    cChanges As UInteger, _
    rgpszFile As String(), _
    rggrfChange As UInteger() _
) As Integer
int FilesChanged(
    uint cChanges,
    string[] rgpszFile,
    uint[] rggrfChange
)
int FilesChanged(
    [InAttribute] unsigned int cChanges, 
    [InAttribute] array<String^>^ rgpszFile, 
    [InAttribute] array<unsigned int>^ rggrfChange
)
abstract FilesChanged : 
        cChanges:uint32 * 
        rgpszFile:string[] * 
        rggrfChange:uint32[] -> int
function FilesChanged(
    cChanges : uint, 
    rgpszFile : String[], 
    rggrfChange : uint[]
) : int

Parameters

  • cChanges
    Type: UInt32

    [in] Number of files changed.

  • rgpszFile
    Type: array<String[]

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

  • rggrfChange
    Type: array<UInt32[]

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

Return Value

Type: Int32
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.

.NET Framework Security

See Also

Reference

IVsFileChangeEvents Interface

Microsoft.VisualStudio.Shell.Interop Namespace