Condividi tramite


IVsDocDataFileChangeControl.IgnoreFileChanges Method

Determines whether changes to DocData in files should be ignored.

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

Syntax

'Dichiarazione
Function IgnoreFileChanges ( _
    fIgnore As Integer _
) As Integer
'Utilizzo
Dim instance As IVsDocDataFileChangeControl
Dim fIgnore As Integer
Dim returnValue As Integer

returnValue = instance.IgnoreFileChanges(fIgnore)
int IgnoreFileChanges(
    int fIgnore
)
int IgnoreFileChanges(
    [InAttribute] int fIgnore
)
function IgnoreFileChanges(
    fIgnore : int
) : int

Parameters

  • fIgnore
    Type: System.Int32

    [in] true indicates that the file changes should be ignored.

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 IVsDocDataFileChangeControl::IgnoreFileChanges(
   [in] BOOL fIgnore
);

Document data objects that advise for FileChange notifications to automatically reload when the file has been changed outside of the editor must implement IVsDocDataFileChangeControl. The IgnoreFileChanges method when set to true tells the document data object to increment a flag to ignore IVsFileChangeEvents for the file.

This IgnoreFileChanges mechanism should be reference-counted to allow nested calls.

Permissions

See Also

Reference

IVsDocDataFileChangeControl Interface

IVsDocDataFileChangeControl Members

Microsoft.VisualStudio.Shell.Interop Namespace