Share via


IVsTextBufferDataEvents.OnFileChanged(UInt32, UInt32) Method

Definition

Forwards the IVsFileChangeEvents::FilesChanged notification that the text buffer monitors to other interested parties.

public:
 void OnFileChanged(System::UInt32 grfChange, System::UInt32 dwFileAttrs);
public:
 void OnFileChanged(unsigned int grfChange, unsigned int dwFileAttrs);
void OnFileChanged(unsigned int grfChange, unsigned int dwFileAttrs);
public void OnFileChanged (uint grfChange, uint dwFileAttrs);
abstract member OnFileChanged : uint32 * uint32 -> unit
Public Sub OnFileChanged (grfChange As UInteger, dwFileAttrs As UInteger)

Parameters

grfChange
UInt32

[in] Specifies the type of change made to the file. For more information, see _VSFILECHANGEFLAGS.

dwFileAttrs
UInt32

[in] File attributes that changed.

Remarks

COM Signature

From textmgr.idl:

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

The non-TextEditorView, such as a Form view, should connect to this event to manage whether "[ReadOnly]" should be included in the document window caption. You can access this caption be calling GetProperty and specifying a value of VSFPROPID_EditorCaption for the propid parameter.

Note

The parameter dwFileAttrs is only valid if the element VSFILECHG_Attr is set in a call to FilesChanged, in which case it returns the result of the GetFileAttributes function.

Applies to