共用方式為


IVsRunningDocumentTable.NotifyDocumentChanged Method

Notifies the client when changes are made to the document.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaration
Function NotifyDocumentChanged ( _
    dwCookie As UInteger, _
    grfDocChanged As UInteger _
) As Integer
int NotifyDocumentChanged(
    uint dwCookie,
    uint grfDocChanged
)
int NotifyDocumentChanged(
    [InAttribute] unsigned int dwCookie, 
    [InAttribute] unsigned int grfDocChanged
)
abstract NotifyDocumentChanged : 
        dwCookie:uint32 * 
        grfDocChanged:uint32 -> int
function NotifyDocumentChanged(
    dwCookie : uint, 
    grfDocChanged : uint
) : int

Parameters

  • dwCookie
    Type: UInt32

    [in] Abstract value representing the document that is changed.

  • grfDocChanged
    Type: UInt32

    [in] RDT attributes whose values are taken from the __VSRDTATTRIB enumeration.

Return Value

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsRunningDocumentTable::NotifyDocumentChanged(
   [in] VSCOOKIE    dwCookie,
   [in] VSRDTATTRIB grfDocChanged
);

The dwCookie parameter is same value that is returned from the FindAndLockDocument or RegisterAndLockDocument methods.

.NET Framework Security

See Also

Reference

IVsRunningDocumentTable Interface

Microsoft.VisualStudio.Shell.Interop Namespace