Udostępnij za pośrednictwem


Właściwość RelationshipHasRoles.Role —

Zdefiniowanie roli relacji roli DomainRole.

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/Role.DisplayName",  _
    GetType(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")> _
<DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.RelationshipHasRoles/Role.Description",  _
    GetType(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")> _
<DomainRoleAttribute(DomainRoleOrder.Target, PropertyName := "Relationship",  _
    PropertyDisplayNameKey := "Microsoft.VisualStudio.Modeling.DslDefinition.RelationshipHasRoles/Role.PropertyDisplayName",  _
    PropagatesDelete := True, PropagatesCopy := PropagatesCopyOption.DoNotPropagateCopy,  _
    Multiplicity := Multiplicity.One)> _
<DomainObjectIdAttribute("bf3826d0-a665-43b6-a2d8-2ad02cc2d9e2")> _
Public MustOverride Property Role As DomainRole
[DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.RelationshipHasRoles/Role.DisplayName", 
    typeof(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")]
[DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.RelationshipHasRoles/Role.Description", 
    typeof(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")]
[DomainRoleAttribute(DomainRoleOrder.Target, PropertyName = "Relationship", 
    PropertyDisplayNameKey = "Microsoft.VisualStudio.Modeling.DslDefinition.RelationshipHasRoles/Role.PropertyDisplayName", 
    PropagatesDelete = true, PropagatesCopy = PropagatesCopyOption.DoNotPropagateCopy, 
    Multiplicity = Multiplicity.One)]
[DomainObjectIdAttribute("bf3826d0-a665-43b6-a2d8-2ad02cc2d9e2")]
public abstract DomainRole Role { get; set; }

Wartość właściwości

Typ: Microsoft.VisualStudio.Modeling.DslDefinition.DomainRole

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

RelationshipHasRoles Klasa

Przestrzeń nazw Microsoft.VisualStudio.Modeling.DslDefinition