IVsRunningDocTableEvents2::OnAfterAttributeChange Method (UInt32, UInt32)
Called after a change in a document attribute of a document in the Running Document Table (RDT).
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- docCookie
-
Type:
System::UInt32
[in] Abstract value representing the document whose attributes have been changed.
- grfAttribs
-
Type:
System::UInt32
[in] Flags corresponding to the changed attributes. Values are taken from the __VSRDTATTRIB enumeration.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
The environment calls this method when a document's attributes change Several things may change a document's attributes:
Attributes may change when someone calls the NotifyDocumentChanged method in the IVsRunningDocumentTable interface.
Attributes may also change because of calls to the RegisterAndLockDocument and RenameDocument methods.
Changing the document window's caption also causes a call to this method.
From vsshell.idl:
HRESULT IVsRunningDocTableEvents2::OnAfterAttributeChange( [in] VSCOOKIE docCookie, [in] VSRDTATTRIB grfAttribs );