共用方式為


DomainRoleImplementedByCollectionType.DomainRole 屬性

DomainRole DomainRole 外部型別,當做這個角色所產生之屬性的集合型別來使用。

命名空間:  Microsoft.VisualStudio.Modeling.DslDefinition
組件:  Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0.dll 中)

語法

'宣告
<DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.DomainRoleImplementedByCollectionType/DomainRole.DisplayName",  _
    GetType(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")> _
<CategoryResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.DomainRoleImplementedByCollectionType/DomainRole.Category",  _
    GetType(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")> _
<DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.DomainRoleImplementedByCollectionType/DomainRole.Description",  _
    GetType(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")> _
<DomainRoleAttribute(DomainRoleOrder.Source, PropertyName := "CollectionType",  _
    PropertyDisplayNameKey := "Microsoft.VisualStudio.Modeling.DslDefinition.DomainRoleImplementedByCollectionType/DomainRole.PropertyDisplayName",  _
    PropagatesCopy := PropagatesCopyOption.PropagatesCopyToLinkAndOppositeRolePlayer,  _
    Multiplicity := Multiplicity.ZeroOne)> _
<DomainObjectIdAttribute("581797bb-ff78-4a04-b992-4eae8e88a434")> _
Public Property DomainRole As DomainRole
[DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.DomainRoleImplementedByCollectionType/DomainRole.DisplayName", 
    typeof(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")]
[CategoryResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.DomainRoleImplementedByCollectionType/DomainRole.Category", 
    typeof(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")]
[DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.DslDefinition.DomainRoleImplementedByCollectionType/DomainRole.Description", 
    typeof(DslDefinitionModelDomainModel), "Microsoft.VisualStudio.Modeling.DslDefinition.GeneratedCode.DomainModelResx")]
[DomainRoleAttribute(DomainRoleOrder.Source, PropertyName = "CollectionType", 
    PropertyDisplayNameKey = "Microsoft.VisualStudio.Modeling.DslDefinition.DomainRoleImplementedByCollectionType/DomainRole.PropertyDisplayName", 
    PropagatesCopy = PropagatesCopyOption.PropagatesCopyToLinkAndOppositeRolePlayer, 
    Multiplicity = Multiplicity.ZeroOne)]
[DomainObjectIdAttribute("581797bb-ff78-4a04-b992-4eae8e88a434")]
public DomainRole DomainRole { get; set; }

屬性值

類型:Microsoft.VisualStudio.Modeling.DslDefinition.DomainRole

.NET Framework 安全性

請參閱

參考

DomainRoleImplementedByCollectionType 類別

Microsoft.VisualStudio.Modeling.DslDefinition 命名空間