Udostępnij za pośrednictwem


Właściwość RelationshipHasRoles.Relationship —

Role w relacji DomainRole relacji.Należy dokładnie dwie.

Przestrzeń nazw:  Microsoft.VisualStudio.Modeling.DslDefinition
Zestaw:  Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0 (w Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0.dll)

Składnia

'Deklaracja
<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; }

Wartość właściwości

Typ: Microsoft.VisualStudio.Modeling.DslDefinition.DomainRelationship

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

RelationshipHasRoles Klasa

Przestrzeń nazw Microsoft.VisualStudio.Modeling.DslDefinition