IVsTextBufferDataEvents.OnFileChanged 方法

向前 IVsFileChangeEvents::FilesChanged 通知该文本缓冲区监视器对于其他相关方。

命名空间:  Microsoft.VisualStudio.TextManager.Interop
程序集:  Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

语法

声明
Sub OnFileChanged ( _
    grfChange As UInteger, _
    dwFileAttrs As UInteger _
)
void OnFileChanged(
    uint grfChange,
    uint dwFileAttrs
)
void OnFileChanged(
    [InAttribute] unsigned int grfChange, 
    [InAttribute] unsigned int dwFileAttrs
)
abstract OnFileChanged : 
        grfChange:uint32 * 
        dwFileAttrs:uint32 -> unit
function OnFileChanged(
    grfChange : uint, 
    dwFileAttrs : uint
)

参数

  • grfChange
    类型:UInt32

    [in] 指定所做的更改的类型到文件中。 有关更多信息,请参见 _VSFILECHANGEFLAGS

  • dwFileAttrs
    类型:UInt32

    [in] 更改的文件属性。

备注

COM 签名

从 textmgr.idl:

HRESULT IVsTextBufferDataEvents::OnFileChanged(
   [in] DWORD grfChange, 
   [in] DWORD dwFileAttrs
);

非 TextEditorView,例如窗体视图,应连接到此事件管理只读 “[]”是否在文档窗口的声明中包括。 可以访问此声明调用 GetProperty 并指定 VSFPROPID_EditorCaption 的值。 propid 参数。

备注

该参数 dwFileAttrs 才有效,如果元素 VSFILECHG_AttrFilesChanged的调用,设置,则返回 GetFileAttributes 功能情况下的结果。

.NET Framework 安全性

请参阅

参考

IVsTextBufferDataEvents 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间