Share via


DomainRoleInfo Members

Include Protected Members
Include Inherited Members

Represents a role of a domain relationship.

The DomainRoleInfo type exposes the following members.

Methods

 

Name

Description

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 methodStatic member

GetAllElementLinks

Gets a list of all element links that the given element participates in.

Public methodStatic member

GetElementLinks

Overloaded. Gets element links for the role.

Public method

GetElementLinksToElement

Overloaded. Gets the links between a source and target element.

Public method

GetHashCode

Serves as a hash function for a particular type. (Inherited from Object.)

Public methodStatic member

GetLinkedElement

Overloaded. Gets the element linked to this element.

Public method

GetLinkedElements

Gets a list of elements that are linked to this role.

Public methodStatic member

GetRolePlayer

Overloaded. Gets a role player from a link.

Public method

GetRolePlayerMoniker

Gets the link role player moniker corresponding to this role.

Public methodStatic member

GetSourceRolePlayer

Gets the source element that is attached to a link.

Public methodStatic member

GetTargetRolePlayer

Gets the target element that is attached to a link.

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 methodStatic member

SetLinkedElement

Overloaded. Sets the element on the other side of the relationship.

Public methodStatic member

SetRolePlayer

Overloaded. Sets the role player.

Public methodStatic member

SetRolePlayerMoniker

Overloaded. Sets the link role player moniker.

Public method

ToString

Converts the element to a string. (Inherited from DomainObjectInfo.)

Top

Properties

 

Name

Description

Public property

BaseDomainRole

Gets the base domain role for this role.

Public property

DisplayName

Gets the display name of the element. (Inherited from DomainObjectInfo.)

Public property

DomainModel

Gets the domain model that contains information about this role. (Overrides DomainObjectInfo.DomainModel.)

Public property

DomainRelationship

Gets the domain relationship that this domain role belongs to.

Public property

Id

Gets the ID of the element. (Inherited from DomainObjectInfo.)

Public property

IsEmbedding

Gets the domain role and verifies whether the player of this role logically contains the players of the other role or roles in this relationship.

Public property

IsMany

Gets the domain role and verifies whether the multiplicity allows multiple objects.

Public property

IsOne

Gets the domain role and verifies whether the multiplicity allows a maximum of one object.

Public property

IsOptional

Gets the domain role and verifies whether the multiplicity allows zero objects. If it does allow zero objects, this makes it optional.

Public property

IsSource

Gets the domain role and verifies that it is source code.

Public property

LinkPropertyInfo

Gets the property information for this domain role.

Public property

Multiplicity

Gets the multiplicity of this role.

Public property

Name

Gets the name of the element. (Inherited from DomainObjectInfo.)

Public property

OppositeDomainRole

Gets the domain role opposite this domain role in the domain relationship.

Public property

PropagatesCopy

Gets the domain role and verifies whether the element playing this role in a link will be copied when the opposite role player element is copied.

Public property

PropagatesDelete

Gets the domain role and verifies whether the element playing this role in a link will be deleted when the opposite role player element or the link itself is deleted.

Public property

PropertyDisplayName

Gets the name of the property that is displayed to the user on the diagram.

Public property

PropertyName

Gets the name of the accessor property for this role on the role player domain class.

Public property

RolePlayer

Gets the domain class that plays this role.

Top

See Also

Reference

DomainRoleInfo Class

Microsoft.VisualStudio.Modeling Namespace