Compartir a través de


RelationshipHasRoles.Relationship (Propiedad)

Roles de DomainRole Relación de la relación.debe haber exactamente dos.

Espacio de nombres:  Microsoft.VisualStudio.Modeling.DslDefinition
Ensamblado:  Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.11.0 (en Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.11.0.dll)

Sintaxis

'Declaración
<DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.RelationshipHasRoles/Relationship.Description",  _
    GetType(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")> _
<DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.RelationshipHasRoles/Relationship.DisplayName",  _
    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
[DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.RelationshipHasRoles/Relationship.Description", 
    typeof(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")]
[DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.RelationshipHasRoles/Relationship.DisplayName", 
    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; }

Valor de propiedad

Tipo: Microsoft.VisualStudio.Modeling.DslDefinition.DomainRelationship

Seguridad de .NET Framework

Vea también

Referencia

RelationshipHasRoles Clase

Microsoft.VisualStudio.Modeling.DslDefinition (Espacio de nombres)