다음을 통해 공유


DomainModel Class

Represents a domain model. This is the base class of the domain model of your DSL.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Modeling.DomainModel
    Microsoft.VisualStudio.Modeling.CoreDomainModel
    Microsoft.VisualStudio.Modeling.Diagrams.CoreDesignSurfaceDomainModel
    Microsoft.VisualStudio.Modeling.DslDefinition.DslDefinitionModelDomainModel

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

‘선언
Public MustInherit Class DomainModel
public abstract class DomainModel
public ref class DomainModel abstract
[<AbstractClass>]
type DomainModel =  class end
public abstract class DomainModel

The DomainModel type exposes the following members.

Constructors

  Name Description
Protected method DomainModel Initializes a new instance of the DomainModel class.

Top

Properties

  Name Description
Public property DomainModelInfo Gets information about the domain model.
Public property ResourceManager Gets the resource manager for the domain model.
Public property Store Gets the store which contains this instance of the domain model.

Top

Methods

  Name Description
Public method CreateElement Creates an element of a specified type.
Public method CreateElementLink Creates an element link of a specified type.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetClosureFilter Returns an IElementVisitorFilter that corresponds to the particular closure type.
Public method GetClosureVisitor Returns an IElementVisitor that corresponds to the particular closure type.
Protected method GetCustomDomainModelTypes Gets the non-generated domain model types.
Protected method GetCustomDomainProperties Gets the non-generated domain properties.
Protected method GetCustomDomainRoles Gets the non-generated domain roles.
Protected method GetGeneratedDomainModelTypes Gets the generated domain model types.
Protected method GetGeneratedDomainProperties Gets the generated domain properties.
Protected method GetGeneratedDomainRoles Gets the generated domain roles.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Modeling Namespace

Other Resources

[redirect] Domain Model in the Generated API