共用方式為


DocumentEventsClass 類別

這個應用程式開發介面支援 .NET Framework 基礎結構,但您不可以直接在程式碼中使用它。

僅限 Microsoft 內部使用。

繼承階層架構

Object
  EnvDTE.DocumentEventsClass

命名空間:  EnvDTE
組件:  EnvDTE (在 EnvDTE.dll 中)

語法

'宣告
<GuidAttribute("DC5437F7-F114-11D2-AACF-00C04F688DDE")> _
<ClassInterfaceAttribute()> _
Public Class DocumentEventsClass _
    Implements _DocumentEvents, DocumentEvents, _dispDocumentEvents_Event
[GuidAttribute("DC5437F7-F114-11D2-AACF-00C04F688DDE")]
[ClassInterfaceAttribute()]
public class DocumentEventsClass : _DocumentEvents, 
    DocumentEvents, _dispDocumentEvents_Event
[GuidAttribute(L"DC5437F7-F114-11D2-AACF-00C04F688DDE")]
[ClassInterfaceAttribute()]
public ref class DocumentEventsClass : _DocumentEvents, 
    DocumentEvents, _dispDocumentEvents_Event
[<GuidAttribute("DC5437F7-F114-11D2-AACF-00C04F688DDE")>]
[<ClassInterfaceAttribute()>]
type DocumentEventsClass =  
    class 
        interface _DocumentEvents 
        interface DocumentEvents 
        interface _dispDocumentEvents_Event 
    end
public class DocumentEventsClass implements _DocumentEvents, DocumentEvents, _dispDocumentEvents_Event

DocumentEventsClass 類型會公開下列成員。

建構函式

  名稱 描述
公用方法 DocumentEventsClass 基礎架構。 僅限 Microsoft 內部使用。

回頁首

方法

  名稱 描述
公用方法 add_DocumentClosing 基礎架構。 僅限 Microsoft 內部使用。
公用方法 add_DocumentOpened 基礎架構。 僅限 Microsoft 內部使用。
公用方法 add_DocumentOpening 基礎架構。 僅限 Microsoft 內部使用。
公用方法 add_DocumentSaved 基礎架構。 僅限 Microsoft 內部使用。
公用方法 Equals 判斷指定的物件是否等於目前的物件。 (繼承自 Object)。
受保護的方法 Finalize 在記憶體回收開始前,允許物件嘗試釋放資源,並執行其他清除作業。 (繼承自 Object)。
公用方法 GetHashCode 做為預設雜湊函式。 (繼承自 Object)。
公用方法 GetType 取得目前實例 Type 的屬性。 (繼承自 Object)。
受保護的方法 MemberwiseClone 建立目前 Object 的淺層複製 (Shallow Copy) 。 (繼承自 Object)。
公用方法 remove_DocumentClosing 基礎架構。 僅限 Microsoft 內部使用。
公用方法 remove_DocumentOpened 基礎架構。 僅限 Microsoft 內部使用。
公用方法 remove_DocumentOpening 基礎架構。 僅限 Microsoft 內部使用。
公用方法 remove_DocumentSaved 基礎架構。 僅限 Microsoft 內部使用。
公用方法 ToString 傳回代表目前物件的字串。 (繼承自 Object)。

回頁首

事件

  名稱 描述
公用事件 DocumentClosing 只在文件關閉之前發生。
公用事件 DocumentOpened 發生於文件開啟之後。
公用事件 DocumentOpening 發生於文件開啟之前。
公用事件 DocumentSaved 發生於文件存檔時。

回頁首

備註

請參考這項功能的 DocumentEvents。 請勿將這個類別執行個體化。

執行緒安全

這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員是安全執行緒。

請參閱

參考

EnvDTE 命名空間