共用方式為


WebSiteMiscEvents 介面

表示 VSWebSite 物件的事件。 您可以使用這個類別來存取 WebSiteMiscEventsClass 所提供的功能。

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

語法

'宣告
<GuidAttribute("9D9D4002-3258-4EBB-BF58-AF62C3890990")> _
Public Interface WebSiteMiscEvents _
    Inherits _WebSiteMiscEvents, _dispWebSiteMiscEvents_Event
[GuidAttribute("9D9D4002-3258-4EBB-BF58-AF62C3890990")]
public interface WebSiteMiscEvents : _WebSiteMiscEvents, 
    _dispWebSiteMiscEvents_Event
[GuidAttribute(L"9D9D4002-3258-4EBB-BF58-AF62C3890990")]
public interface class WebSiteMiscEvents : _WebSiteMiscEvents, 
    _dispWebSiteMiscEvents_Event
[<GuidAttribute("9D9D4002-3258-4EBB-BF58-AF62C3890990")>]
type WebSiteMiscEvents =  
    interface
        interface _WebSiteMiscEvents
        interface _dispWebSiteMiscEvents_Event
    end
public interface WebSiteMiscEvents extends _WebSiteMiscEvents, _dispWebSiteMiscEvents_Event

WebSiteMiscEvents 型別會公開下列成員。

方法

  名稱 說明
公用方法 add_OnAfterFolderRefresh 基礎架構。這個方法支援 .NET Framework 基礎結構,但您不可以從程式碼直接使用它。 (繼承自 _dispWebSiteMiscEvents_Event)。
公用方法 add_OnBeforeFolderRefresh 基礎架構。這個方法支援 .NET Framework 基礎結構,但您不可以從程式碼直接使用它。 (繼承自 _dispWebSiteMiscEvents_Event)。
公用方法 remove_OnAfterFolderRefresh 基礎架構。這個方法支援 .NET Framework 基礎結構,但您不可以從程式碼直接使用它。 (繼承自 _dispWebSiteMiscEvents_Event)。
公用方法 remove_OnBeforeFolderRefresh 基礎架構。這個方法支援 .NET Framework 基礎結構,但您不可以從程式碼直接使用它。 (繼承自 _dispWebSiteMiscEvents_Event)。

回頁首

事件

  名稱 說明
公用事件 OnAfterFolderRefresh 基礎架構。這個事件支援 .NET Framework 基礎結構,但您不可以從程式碼直接使用它。 (繼承自 _dispWebSiteMiscEvents_Event)。
公用事件 OnBeforeFolderRefresh 基礎架構。這個事件支援 .NET Framework 基礎結構,但您不可以從程式碼直接使用它。 (繼承自 _dispWebSiteMiscEvents_Event)。

回頁首

備註

您可以使用 WebSiteMiscEvents 屬性來取得 WebSiteMiscEventsClass 物件的這個介面。

注意事項注意事項

從 Visual Studio 2005 開始,這個類別所提供的功能均可在 Visual Studio 的版本中使用。 無法在 Visual Web Developer Express 版中使用。

範例

下列巨集程式碼範例會說明如何透過 Development Tools Extensibility (DTE) 物件建立目前 VSWebSite 物件的參考以及訂閱事件。 這個範例屬於 VSWebSiteEvents 完整程式碼範例的一部分。

' Initialize the VsWebSite and the Events
Sub InitAssemblyRefsEvents()
    ' Get a reference to the first Web site 
    ' in the current solution
    Dim ws As VsWebSite.VSWebSite = _
        DTE.Solution.Projects.Item(1).Object

    ' Attach the Web site events to module events
    AssemblyRefsEvents = _
        ws.VSWebSiteEvents.AssemblyReferencesEvents
End Sub
' Declare the event
' The macro IDE requires the attribute 
' in order to trap the events
<System.ContextStaticAttribute()> _
Public WithEvents MiscEvents As _
    VsWebSite.WebSiteMiscEvents

請參閱

參考

VsWebSite 命名空間

DTE

VSWebSite

VSWebSiteEvents

VSWebSiteEvents

WebSiteMiscEvents

WebSiteMiscEventsClass

其他資源

參考 Automation 組件和 DTE2 物件

HOW TO:處理巨集中的事件