次の方法で共有


IVsRunningDocTableEvents4 Interface

Implements methods that fire in response to changes to documents in the Running Document Table (RDT).

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

Syntax

'宣言
<GuidAttribute("79A342F3-D637-4D54-83DC-DDD511743A49")> _
<InterfaceTypeAttribute()> _
Public Interface IVsRunningDocTableEvents4
'使用
Dim instance As IVsRunningDocTableEvents4
[GuidAttribute("79A342F3-D637-4D54-83DC-DDD511743A49")]
[InterfaceTypeAttribute()]
public interface IVsRunningDocTableEvents4
[GuidAttribute(L"79A342F3-D637-4D54-83DC-DDD511743A49")]
[InterfaceTypeAttribute()]
public interface class IVsRunningDocTableEvents4
[<GuidAttribute("79A342F3-D637-4D54-83DC-DDD511743A49")>]
[<InterfaceTypeAttribute()>]
type IVsRunningDocTableEvents4 =  interface end
public interface IVsRunningDocTableEvents4

Remarks

The IVsRunningDocTableEvents interface is specified in a call to the AdviseRunningDocTableEvents method in the IVsRunningDocumentTable interface. The method also returns a cookie representing the client requesting the notification. The cookie is used in the call to the UnadviseRunningDocTableEvents method when the package no longer wants to listen to RDT events.

Notes to Implementers

This interface is implemented by packages to receive events relating to the current state of documents in the RDT. This interface must be implemented on the same class that implements the IVsRunningDocTableEvents interface. The environment calls the QueryInterface method on the IVsRunningDocTableEvents interface to obtain the IVsRunningDocTableEvents4 interface.

Notes to Callers

This interface is called by the environment when specific events have occurred. This interface is called before the first document lock is applied.

See Also

Reference

IVsRunningDocTableEvents4 Members

Microsoft.VisualStudio.Shell.Interop Namespace