IVsRunningDocTableEvents.OnAfterAttributeChange Method
Called after a change in an attribute of a document in the Running Document Table (RDT).
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'宣告
Function OnAfterAttributeChange ( _
docCookie As UInteger, _
grfAttribs As UInteger _
) As Integer
'用途
Dim instance As IVsRunningDocTableEvents
Dim docCookie As UInteger
Dim grfAttribs As UInteger
Dim returnValue As Integer
returnValue = instance.OnAfterAttributeChange(docCookie, _
grfAttribs)
int OnAfterAttributeChange(
uint docCookie,
uint grfAttribs
)
int OnAfterAttributeChange(
[InAttribute] unsigned int docCookie,
[InAttribute] unsigned int grfAttribs
)
abstract OnAfterAttributeChange :
docCookie:uint32 *
grfAttribs:uint32 -> int
function OnAfterAttributeChange(
docCookie : uint,
grfAttribs : uint
) : int
Parameters
- docCookie
Type: System.UInt32
[in] Abstract value representing the document whose attributes have changed.
- grfAttribs
Type: System.UInt32
[in] Flags corresponding to the changed attributes. Values are taken from the __VSRDTATTRIB enumeration.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
The environment calls this method when a document's attributes have changed:
Attributes may change when someone calls the NotifyDocumentChanged method in the IVsRunningDocumentTable interface.
Calls to the RegisterAndLockDocument and RenameDocument methods may also change attributes.
Changing the caption on the document's window also calls this method.
COM Signature
From vsshell.idl:
HRESULT IVsRunningDocTableEvents::OnAfterAttributeChange(
[in] VSCOOKIE docCookie,
[in] VSRDTATTRIB grfAttribs
);
.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.
See Also
Reference
IVsRunningDocTableEvents Interface