RelationshipHasRoles.Role 属性
DomainRole 定义角色的角色关系。
命名空间: Microsoft.VisualStudio.Modeling.DslDefinition
程序集: Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.11.0(在 Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.11.0.dll 中)
语法
声明
<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")> _
<DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.RelationshipHasRoles/Role.Description", _
GetType(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")> _
<DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.RelationshipHasRoles/Role.DisplayName", _
GetType(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")> _
Public MustOverride Property Role As DomainRole
[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")]
[DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.RelationshipHasRoles/Role.Description",
typeof(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")]
[DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.RelationshipHasRoles/Role.DisplayName",
typeof(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")]
public abstract DomainRole Role { get; set; }
属性值
类型:Microsoft.VisualStudio.Modeling.DslDefinition.DomainRole
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。