共用方式為


IVsDataViewUserContextProvider.UserContextChanged 事件

當使用者在內容變更時,就會發生。

命名空間:  Microsoft.VisualStudio.Data.Services.SupportEntities
組件:  Microsoft.VisualStudio.Data.Services (在 Microsoft.VisualStudio.Data.Services.dll 中)

語法

'宣告
Event UserContextChanged As EventHandler(Of DataViewNodeEventArgs)
event EventHandler<DataViewNodeEventArgs> UserContextChanged
event EventHandler<DataViewNodeEventArgs^>^ UserContextChanged {
    void add (EventHandler<DataViewNodeEventArgs^>^ value);
    void remove (EventHandler<DataViewNodeEventArgs^>^ value);
}
abstract UserContextChanged : IEvent<EventHandler<DataViewNodeEventArgs>,
    DataViewNodeEventArgs>
JScript 不支援事件。

備註

使用使用者內容,如果使用者啟動內容說明,因此,說明主題可以更適合使用者的動作。

例如,在中,當使用者在伺服器總管中選取,的其他節點使用者內容變更。

.NET Framework 安全性

請參閱

參考

IVsDataViewUserContextProvider 介面

Microsoft.VisualStudio.Data.Services.SupportEntities 命名空間