次の方法で共有


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
)
function FilesChanged(
    cChanges : uint, 
    rgpszFile : String[], 
    rggrfChange : uint[]
) : int

Parameters

  • rgpszFile
    Type: []

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

  • rggrfChange
    Type: []

    [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

See Also

Reference

IVsFileChangeEvents Interface

IVsFileChangeEvents Members

Microsoft.VisualStudio.Shell.Interop Namespace