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

‘선언
Function FilesChanged ( _
    cChanges As UInteger, _
    rgpszFile As String(), _
    rggrfChange As UInteger() _
) As Integer
‘사용 방법
Dim instance As IVsFileChangeEvents
Dim cChanges As UInteger
Dim rgpszFile As String()
Dim rggrfChange As UInteger()
Dim returnValue As Integer

returnValue = instance.FilesChanged(cChanges, _
    rgpszFile, rggrfChange)
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

  • rgpszFile
    Type: array<System.String[]
    [in, size_is(cChanges)] Array of file names.

Return Value

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

IVsFileChangeEvents Members

Microsoft.VisualStudio.Shell.Interop Namespace