共用方式為


CoreDomainModel 類別

表示網域模型,該模型定義所有網域模型所使用的基本項目。

繼承階層架構

System.Object
  Microsoft.VisualStudio.Modeling.DomainModel
    Microsoft.VisualStudio.Modeling.CoreDomainModel

命名空間:  Microsoft.VisualStudio.Modeling
組件:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)

語法

'宣告
<DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.CoreDomainModel.DisplayName",  _
    GetType(CoreDomainModel), "Microsoft.VisualStudio.Modeling.GeneratedCode.DomainModelResx")> _
<DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.CoreDomainModel.Description",  _
    GetType(CoreDomainModel), "Microsoft.VisualStudio.Modeling.GeneratedCode.DomainModelResx")> _
<CLSCompliantAttribute(True)> _
<DomainObjectIdAttribute("968f9fb9-6074-49e3-8ec2-1e1ce7143e71")> _
Public NotInheritable Class CoreDomainModel _
    Inherits DomainModel
[DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.CoreDomainModel.DisplayName", 
    typeof(CoreDomainModel), "Microsoft.VisualStudio.Modeling.GeneratedCode.DomainModelResx")]
[DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.CoreDomainModel.Description", 
    typeof(CoreDomainModel), "Microsoft.VisualStudio.Modeling.GeneratedCode.DomainModelResx")]
[CLSCompliantAttribute(true)]
[DomainObjectIdAttribute("968f9fb9-6074-49e3-8ec2-1e1ce7143e71")]
public sealed class CoreDomainModel : DomainModel

CoreDomainModel 類型會公開下列成員。

建構函式

  名稱 描述
公用方法 CoreDomainModel 初始化 CoreDomainModel 類別的新執行個體。

回頁首

屬性

  名稱 描述
公用屬性 DomainModelInfo 取得網域模型的相關資訊。 (繼承自 DomainModel)。
公用屬性 ResourceManager 取得 DomainModel 的 ResourceManager。如果 ResourceManager 不存在,則會建立它。 (覆寫 DomainModel.ResourceManager。)
公用屬性靜態成員 SingletonResourceManager 取得這個網域模型的單一 ResourceManager。
公用屬性 Store 取得包含這個網域模型執行個體的存放區。 (繼承自 DomainModel)。

回頁首

方法

  名稱 描述
公用方法 CreateElement 建立指定型別的項目。 (覆寫 DomainModel.CreateElement(Partition, Type, array<PropertyAssignment[])。)
公用方法 CreateElementLink 建立指定型別的項目連結。 (覆寫 DomainModel.CreateElementLink(Partition, Type, array<RoleAssignment[], array<PropertyAssignment[])。)
公用方法 Equals 判斷指定的物件是否等於目前物件。 (繼承自 Object)。
公用方法 GetClosureFilter 傳回對應特定結束型別的 IElementVisitorFilter。 (繼承自 DomainModel)。
公用方法 GetClosureVisitor 傳回對應特定結束型別的 IElementVisitorFilter。 (繼承自 DomainModel)。
公用方法 GetHashCode 做為預設雜湊函式。 (繼承自 Object)。
公用方法 GetType 取得目前執行個體的 Type。 (繼承自 Object)。
公用方法 ToString 傳回表示目前物件的字串。 (繼承自 Object)。

回頁首

欄位

  名稱 描述
公用欄位靜態成員 DomainModelId 表示核心網域模型的網域模型識別碼。
公用欄位靜態成員 ResourceBaseName 這個模型的資源的基底名稱。

回頁首

備註

所有網域模型中使用這個核心網域模型,並且為項目提供定義 (例如 ModelElementElementLink

執行緒安全

這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員是安全執行緒。

請參閱

參考

Microsoft.VisualStudio.Modeling 命名空間