共用方式為


GraphLinkCollection.LinksUpdated 事件

LinksUpdated 的事件實作。 在這裡不使用隱含的 C# 事件,因為我們只想要接聽 TransactedDictionaryChanges,以了解是否有用戶端在接聽我們。 (基於效能原因)。

命名空間:  Microsoft.VisualStudio.GraphModel
組件:  Microsoft.VisualStudio.GraphModel (在 Microsoft.VisualStudio.GraphModel.dll 中)

語法

'宣告
Public Event LinksUpdated As EventHandler(Of GraphLinksUpdatedEventArgs)
public event EventHandler<GraphLinksUpdatedEventArgs> LinksUpdated
public:
 event EventHandler<GraphLinksUpdatedEventArgs^>^ LinksUpdated {
    void add (EventHandler<GraphLinksUpdatedEventArgs^>^ value);
    void remove (EventHandler<GraphLinksUpdatedEventArgs^>^ value);
}
member LinksUpdated : IEvent<EventHandler<GraphLinksUpdatedEventArgs>,
    GraphLinksUpdatedEventArgs>
JScript 不支援事件。

.NET Framework 安全性

請參閱

參考

GraphLinkCollection 類別

Microsoft.VisualStudio.GraphModel 命名空間