向前 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_Attr 到 FilesChanged的调用,设置,则返回 GetFileAttributes 功能情况下的结果。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。