RelatedEnd.AssociationChanged 事件
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
對相關端進行變更時發生。
命名空間: System.Data.Entity.Core.Objects.DataClasses
組件: EntityFramework (在 EntityFramework.dll 中)
語法
'宣告
Public Event AssociationChanged As CollectionChangeEventHandler
'用途
Dim instance As RelatedEnd
Dim handler As CollectionChangeEventHandler
AddHandler instance.AssociationChanged, handler
public event CollectionChangeEventHandler AssociationChanged
public:
event CollectionChangeEventHandler^ AssociationChanged {
void add (CollectionChangeEventHandler^ value);
void remove (CollectionChangeEventHandler^ value);
}
member AssociationChanged : IEvent<CollectionChangeEventHandler,
CollectionChangeEventArgs>
JScript supports the use of events, but not the declaration of new ones.