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
'Déclaration
Function NotifyDocumentChanged ( _
dwCookie As UInteger, _
grfDocChanged As UInteger _
) As Integer
'Utilisation
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.
- grfDocChanged
Type: System.UInt32
[in] RDT attributes whose 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
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
- 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
IVsRunningDocumentTable Interface