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
'Déclaration
Function FilesChanged ( _
cChanges As UInteger, _
rgpszFile As String(), _
rggrfChange As UInteger() _
) As Integer
'Utilisation
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
)
function FilesChanged(
cChanges : uint,
rgpszFile : String[],
rggrfChange : uint[]
) : int
Parameters
cChanges
Type: System.UInt32[in] Number of files changed.
rgpszFile
Type: array<System.String[][in, size_is(cChanges)] Array of file names.
rggrfChange
Type: array<System.UInt32[][in, size_is(cChanges)] Array of flags indicating the type of changes. See _VSFILECHANGEFLAGS.
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.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.