次の方法で共有


IVsDocDataFileChangeControl Interface

Determines whether changes to document data files made outside of the editor should be ignored.

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

Syntax

'宣言
<GuidAttribute("BF955013-A875-439D-A4E7-A3BBDF12AA4F")> _
<InterfaceTypeAttribute()> _
Public Interface IVsDocDataFileChangeControl
'使用
Dim instance As IVsDocDataFileChangeControl
[GuidAttribute("BF955013-A875-439D-A4E7-A3BBDF12AA4F")]
[InterfaceTypeAttribute()]
public interface IVsDocDataFileChangeControl
[GuidAttribute(L"BF955013-A875-439D-A4E7-A3BBDF12AA4F")]
[InterfaceTypeAttribute()]
public interface class IVsDocDataFileChangeControl
[<GuidAttribute("BF955013-A875-439D-A4E7-A3BBDF12AA4F")>]
[<InterfaceTypeAttribute()>]
type IVsDocDataFileChangeControl =  interface end
public interface IVsDocDataFileChangeControl

Remarks

All editors should implement LoadDocData. This means that the editor advises for file change events through SVsFileChangeEx to listen for changes to the file outside of the environment. The editor would then prompt the user to reload the file. See AdviseFileChange for information relating to advising for file changes.

All editors that properly implement this reload feature need to implement IVsDocDataFileChangeControl to allow listeners like Source Code Control to tell the editor to ignore file changes at specific times. For example, when Source Code Control is getting the latest version of the file it will directly call ReloadDocData at the appropriate time rather than allowing the user to be prompted to reload the file.

See Also

Reference

IVsDocDataFileChangeControl Members

Microsoft.VisualStudio.Shell.Interop Namespace