Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Forwards the IVsFileChangeEvents::FilesChanged notification that the text buffer monitors to other interested parties.
Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
'Declaration
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
)
Parameters
- grfChange
 Type: System.UInt32
 [in] Specifies the type of change made to the file. For more information, see _VSFILECHANGEFLAGS.
- dwFileAttrs
 Type: System.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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.