共用方式為


IWebMatrixHost.WebSiteChanged 事件

適用於版本2

在目前網站變更時發生。

命名空間:  Microsoft.WebMatrix.Extensibility
組件:  Microsoft.WebMatrix.Extensibility (在 Microsoft.WebMatrix.Extensibility.dll 中)

語法

'宣告
Event WebSiteChanged As EventHandler(Of EventArgs)
'用途
Dim instance As IWebMatrixHost 
Dim handler As EventHandler(Of EventArgs)

AddHandler instance.WebSiteChanged, handler
event EventHandler<EventArgs> WebSiteChanged
event EventHandler<EventArgs^>^ WebSiteChanged {
    void add (EventHandler<EventArgs^>^ value);
    void remove (EventHandler<EventArgs^>^ value);
}
abstract WebSiteChanged : IEvent<EventHandler<EventArgs>,
    EventArgs>
JScript supports the use of events, but not the declaration of new ones.

請參閱

參考

IWebMatrixHost 介面

Microsoft.WebMatrix.Extensibility 命名空間