ElementEventArgs 類別
為與模型項目相關聯的通知,提供資料。
繼承階層架構
System.Object
System.EventArgs
Microsoft.VisualStudio.Modeling.ModelingEventArgs
Microsoft.VisualStudio.Modeling.GenericEventArgs
Microsoft.VisualStudio.Modeling.ElementEventArgs
Microsoft.VisualStudio.Modeling.ElementAddedEventArgs
Microsoft.VisualStudio.Modeling.ElementDeletedEventArgs
Microsoft.VisualStudio.Modeling.ElementDeletingEventArgs
Microsoft.VisualStudio.Modeling.ElementMovedEventArgs
Microsoft.VisualStudio.Modeling.ElementPropertyChangedEventArgs
命名空間: Microsoft.VisualStudio.Modeling
組件: Microsoft.VisualStudio.Modeling.Sdk.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)
語法
'宣告
Public Class ElementEventArgs _
Inherits GenericEventArgs
public class ElementEventArgs : GenericEventArgs
ElementEventArgs 類型會公開下列成員。
建構函式
名稱 | 描述 | |
---|---|---|
ElementEventArgs(IElementDirectory, DomainClassInfo, Guid, ChangeSource) | 已過時。過時的建構函式 | |
ElementEventArgs(IElementDirectory, DomainClassInfo, Guid, ChangeSource, TransactionContext) | 建構函式 |
回頁首
屬性
名稱 | 描述 | |
---|---|---|
ChangeSource | 在衍生類別中覆寫時,取得或設定這項變更的來源。 (繼承自 GenericEventArgs)。 | |
DomainClass | 取得與通知相關的網域類別。 (覆寫 GenericEventArgs.DomainClass。) | |
DomainModel | 取得與通知相關的網域模型。 (覆寫 GenericEventArgs.DomainModel。) | |
ElementId | 取得與通知相關的 ModelElement 的 ID。 (覆寫 GenericEventArgs.ElementId。) | |
ModelElement | 做為通知主旨的 ModelElement | |
TransactionContext | 取得與事件相關聯的 TransactionContext。如果沒有交易內容可供事件使用,可能是 null。 (繼承自 ModelingEventArgs)。 |
回頁首
方法
名稱 | 描述 | |
---|---|---|
Equals | 判斷指定的物件是否等於目前物件。 (繼承自 Object)。 | |
Finalize | 允許物件在記憶體回收進行回收之前,嘗試釋放資源並執行其他清除作業。 (繼承自 Object)。 | |
GetHashCode | 做為預設雜湊函式。 (繼承自 Object)。 | |
GetType | 取得目前執行個體的 Type。 (繼承自 Object)。 | |
MemberwiseClone | 建立目前 Object 的淺層複本 (Shallow Copy)。 (繼承自 Object)。 | |
ToString | 傳回表示目前物件的字串。 (繼承自 Object)。 |
回頁首
執行緒安全
這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員是安全執行緒。