ModelElement Members

Include Protected Members
Include Inherited Members

The base class for all domain model elements. All elements and links in a DomainModel are members of this type.

The ModelElement type exposes the following members.

Constructors

 

Name

Description

Protected method

ModelElement

Initializes a new instance of the ModelElement class.

Top

Methods

 

Name

Description

Protected method

CanMerge

Verifies whether a source element can be added to this element.

Protected method

ChooseMergeTarget

Overloaded. Selects a target element that the root element should merge with.

Public method

Copy

Overloaded. Creates a copy of this element in the model.

Public method

Delete

Overloaded. Deletes the element from the model.

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

GetDomainClass

Gets the most-derived domain class for this element.

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.)

Protected method

MergeConfigure

Allows the model element to configure itself immediately after the Merge process has related it to the target element.

Protected method

MergeDisconnect

Disconnects a source element from a target element.

Protected method

MergeRelate

Creates a relationship between this target element and the specified source element.

Protected method

OnCopy

Alerts listeners that a copy of the element has been created.

Protected method

OnDeleted

Alerts listeners that an element has been deleted from the model.

Protected method

OnDeleting

Alerts listeners that the element is being deleted.

Protected method

OnResurrected

Alerts listeners that an element has been added back to a model.

Protected method

OnRolePlayerPositionChanged

Alerts listeners that the position of a role is about to change.

Protected method

OnRolePlayerPositionChanging

Allows notification when a role player position has changed.

Public method

ToString

Returns a string that represents the current object. (Inherited from Object.)

Top

Fields

 

Name

Description

Public fieldStatic member

DomainClassId

Represents the ID of the domain class for this element.

Top

Properties

 

Name

Description

Public property

Id

Gets the ID of the element.

Public property

IsActive

Gets the IsActive flag and verifies to see whether the element is active.

Public property

IsDeleted

Gets the IsDeleted flag and checks to see whether the element has been deleted from the model.

Public property

IsDeleting

Gets the IsDeleting flag and verifies whether the element is currently being deleted from the model.

Public property

Partition

Gets or sets the Partition that contains the element.

Public property

Store

Gets the Store that contains the element.

Top

Explicit Interface Implementations

 

Name

Description

Explicit interface implemetationPrivate method

IMergeElements.CanMerge

Public method

ChooseMergeTarget

Overloaded.

Explicit interface implemetationPrivate method

IMergeElements.MergeConfigure

Explicit interface implemetationPrivate method

IMergeElements.MergeDisconnect

Explicit interface implemetationPrivate method

IMergeElements.MergeRelate

Top

See Also

Reference

ModelElement Class

Microsoft.VisualStudio.Modeling Namespace