RelationshipHasRoles.Relationship Property
DomainRole Relationship Roles of the relationship. There should be exactly two.
Namespace: Microsoft.VisualStudio.Modeling.DslDefinition
Assembly: Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0.dll)
Syntax
'Declaration
<DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.RelationshipHasRoles/Relationship.DisplayName", _
GetType(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")> _
<DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.RelationshipHasRoles/Relationship.Description", _
GetType(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")> _
<DomainRoleAttribute(DomainRoleOrder.Source, PropertyName := "Roles", PropertyDisplayNameKey := "Microsoft.VisualStudio.Modeling.DslDefinition.RelationshipHasRoles/Relationship.PropertyDisplayName", _
PropagatesDelete := True, PropagatesCopy := PropagatesCopyOption.PropagatesCopyToLinkAndOppositeRolePlayer, _
Multiplicity := Multiplicity.ZeroMany)> _
<DomainObjectIdAttribute("c5e8bd00-1f3c-454a-bf6b-71d348f22564")> _
Public MustOverride Property Relationship As DomainRelationship
[DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.RelationshipHasRoles/Relationship.DisplayName",
typeof(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")]
[DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.RelationshipHasRoles/Relationship.Description",
typeof(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")]
[DomainRoleAttribute(DomainRoleOrder.Source, PropertyName = "Roles", PropertyDisplayNameKey = "Microsoft.VisualStudio.Modeling.DslDefinition.RelationshipHasRoles/Relationship.PropertyDisplayName",
PropagatesDelete = true, PropagatesCopy = PropagatesCopyOption.PropagatesCopyToLinkAndOppositeRolePlayer,
Multiplicity = Multiplicity.ZeroMany)]
[DomainObjectIdAttribute("c5e8bd00-1f3c-454a-bf6b-71d348f22564")]
public abstract DomainRelationship Relationship { get; set; }
[DisplayNameResourceAttribute(L"Microsoft.VisualStudio.Modeling.DslDefinition.RelationshipHasRoles/Relationship.DisplayName",
typeof(DslDefinitionModelDomainModel), L"Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")]
[DescriptionResourceAttribute(L"Microsoft.VisualStudio.Modeling.DslDefinition.RelationshipHasRoles/Relationship.Description",
typeof(DslDefinitionModelDomainModel), L"Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")]
[DomainRoleAttribute(DomainRoleOrder::Source, PropertyName = L"Roles", PropertyDisplayNameKey = L"Microsoft.VisualStudio.Modeling.DslDefinition.RelationshipHasRoles/Relationship.PropertyDisplayName",
PropagatesDelete = true, PropagatesCopy = PropagatesCopyOption::PropagatesCopyToLinkAndOppositeRolePlayer,
Multiplicity = Multiplicity::ZeroMany)]
[DomainObjectIdAttribute(L"c5e8bd00-1f3c-454a-bf6b-71d348f22564")]
public:
virtual property DomainRelationship^ Relationship {
DomainRelationship^ get () abstract;
void set (DomainRelationship^ value) abstract;
}
[<DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.RelationshipHasRoles/Relationship.DisplayName",
typeof(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")>]
[<DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.RelationshipHasRoles/Relationship.Description",
typeof(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")>]
[<DomainRoleAttribute(DomainRoleOrder.Source, PropertyName = "Roles", PropertyDisplayNameKey = "Microsoft.VisualStudio.Modeling.DslDefinition.RelationshipHasRoles/Relationship.PropertyDisplayName",
PropagatesDelete = true, PropagatesCopy = PropagatesCopyOption.PropagatesCopyToLinkAndOppositeRolePlayer,
Multiplicity = Multiplicity.ZeroMany)>]
[<DomainObjectIdAttribute("c5e8bd00-1f3c-454a-bf6b-71d348f22564")>]
abstract Relationship : DomainRelationship with get, set
abstract function get Relationship () : DomainRelationship
abstract function set Relationship (value : DomainRelationship)
Property Value
Type: Microsoft.VisualStudio.Modeling.DslDefinition.DomainRelationship
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.