Partager via


IVsRunningDocTableEvents2.OnAfterAttributeChange Method

Called after a change in a document 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

'Déclaration
Function OnAfterAttributeChange ( _
    docCookie As UInteger, _
    grfAttribs As UInteger _
) As Integer
'Utilisation
Dim instance As IVsRunningDocTableEvents2
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
)
function OnAfterAttributeChange(
    docCookie : uint, 
    grfAttribs : uint
) : int

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.Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

IVsRunningDocTableEvents.OnAfterAttributeChange(UInt32, UInt32)

Remarks

The environment calls this method when a document's attributes change Several things may change a document's attributes:

COM Signature

From vsshell.idl:

HRESULT IVsRunningDocTableEvents2::OnAfterAttributeChange(
   [in] VSCOOKIE docCookie,
   [in] VSRDTATTRIB grfAttribs
);

Permissions

See Also

Reference

IVsRunningDocTableEvents2 Interface

IVsRunningDocTableEvents2 Members

Microsoft.VisualStudio.Shell.Interop Namespace