DomainRoleInfo Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a role of a domain relationship.
public ref class DomainRoleInfo sealed : Microsoft::VisualStudio::Modeling::DomainObjectInfo
[System.Diagnostics.DebuggerDisplay("DomainRole (Name = {name}, DomainRelationship = {domainRelationship.name,nq})")]
public sealed class DomainRoleInfo : Microsoft.VisualStudio.Modeling.DomainObjectInfo
[<System.Diagnostics.DebuggerDisplay("DomainRole (Name = {name}, DomainRelationship = {domainRelationship.name,nq})")>]
type DomainRoleInfo = class
inherit DomainObjectInfo
Public NotInheritable Class DomainRoleInfo
Inherits DomainObjectInfo
- Inheritance
- Attributes
Properties
BaseDomainRole |
Gets base domain role for this role. |
DisplayName |
Gets display name of this domain object. (Inherited from DomainObjectInfo) |
DomainModel |
Gets domain model where domain relationship this role belongs to is defined. |
DomainRelationship |
Gets the domain relationship that this domain role belongs to. |
Id |
Gets the ID of this domain object. (Inherited from DomainObjectInfo) |
IsEmbedding |
Does the player of this role logically contain the players of the other role(s) in this relationship? |
IsMany |
Gets whether multiplicity is either 0..* or 1..*. |
IsOne |
Gets whether multiplicity is either 0..1 or 1..1. |
IsOptional |
Gets whether multiplicity is either 0..1 or 0..*. |
IsSource |
Returns true if this is the source role. |
LinkPropertyInfo |
Gets the PropertyInfo for this domain role (this is the CLR property info field of this role). |
Multiplicity |
Gets the multiplicity of this role. |
Name |
Gets the name of this domain object. (Inherited from DomainObjectInfo) |
OppositeDomainRole |
Gets the domain role opposite this domain role in the domain relationship |
PropagatesCopy |
Returns PropagateCopyOption on this DomainRoleInfo instance. |
PropagatesDelete |
Gets whether element playing this role in a link will be deleted when the opposite role player element or the link itself is deleted. |
PropertyDisplayName |
For the given model element, this method returns the property display name |
PropertyName |
Gets name of the accessor property for this role on role player domain class. |
RolePlayer |
Gets domain class that plays this role. |
Methods
GetAllElementLinks(ModelElement) |
Gets a list of all element links given element participates in. |
GetElementLinks(ModelElement) |
Gets element links where given element plays this role. |
GetElementLinks(ModelElement, Boolean) |
Gets element links where given element plays this role. |
GetElementLinks<T>(ModelElement) |
Gets element links where given element plays this role. |
GetElementLinks<T>(ModelElement, Boolean) |
Gets element links where given element plays this role. |
GetElementLinks<T>(ModelElement, Guid) |
Gets element links where given element plays a given role. |
GetElementLinksToElement(ModelElement, ModelElement) |
Get all element links between the given source/target elements, where the source element plays this role. Including links attached to derived role players. |
GetElementLinksToElement(ModelElement, ModelElement, Boolean) |
Get all element links between the given source/target elements, where the source element plays this role. |
GetElementLinksToElement<T>(ModelElement, ModelElement) |
Get all element links between the given source/target elements, where the source element plays this role. Including links attached to derived role players. |
GetElementLinksToElement<T>(ModelElement, ModelElement, Boolean) |
Get all element links between the given source/target elements, where the source element plays this role. |
GetLinkedElement(ModelElement) |
Gets the element linked to this element via 1..1 or 0..1 relationship. |
GetLinkedElement(ModelElement, Guid) |
Gets the element linked to this element via 1..1 or 0..1 relationship. |
GetLinkedElements(ModelElement) |
Gets a list of elements linked to an element playing this role via this role's relationship. |
GetRolePlayer(ElementLink) |
Gets link role player corresponding to this role. |
GetRolePlayer(ElementLink, Guid) |
Gets specified role player from a link. |
GetRolePlayerMoniker(ElementLink) |
Gets link role player moniker corresponding to this role. |
GetSourceRolePlayer(ElementLink) |
Gets the source role player for the given link |
GetTargetRolePlayer(ElementLink) |
Gets the target role player for the given link |
SetLinkedElement(ModelElement, Guid, ModelElement) |
Sets link role player on the other side of relationship. |
SetLinkedElement(ModelElement, ModelElement) |
Sets the element on the other side of relationship. |
SetRolePlayer(ElementLink, Guid, ModelElement) |
Sets specified role player on a link. |
SetRolePlayer(ElementLink, ModelElement) |
Sets link role player corresponding to this role. |
SetRolePlayerMoniker(ElementLink, Guid, Moniker) |
Sets specified role player on a link. |
SetRolePlayerMoniker(ElementLink, Moniker) |
Sets link role player moniker corresponding to this role. |
ToString() |
Gets string representing of this object. (Inherited from DomainObjectInfo) |