다음을 통해 공유


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

‘선언
Function NotifyDocumentChanged ( _
    dwCookie As UInteger, _
    grfDocChanged As UInteger _
) As Integer
‘사용 방법
Dim instance As IVsRunningDocumentTable
Dim dwCookie As UInteger
Dim grfDocChanged As UInteger
Dim returnValue As Integer

returnValue = instance.NotifyDocumentChanged(dwCookie, _
    grfDocChanged)
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: System.UInt32
    [in] Abstract value representing the document that is changed.

Return Value

Type: System.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

IVsRunningDocumentTable Members

Microsoft.VisualStudio.Shell.Interop Namespace