共用方式為


ElementTypeDescriptor.CreateRolePlayerPropertyDescriptor 方法

建立模型項目的角色屬性描述元。

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

語法

'宣告
Protected Overridable Function CreateRolePlayerPropertyDescriptor ( _
    sourceRolePlayer As ModelElement, _
    targetRoleInfo As DomainRoleInfo, _
    sourceDomainRoleInfoAttributes As Attribute() _
) As RolePlayerPropertyDescriptor
protected virtual RolePlayerPropertyDescriptor CreateRolePlayerPropertyDescriptor(
    ModelElement sourceRolePlayer,
    DomainRoleInfo targetRoleInfo,
    Attribute[] sourceDomainRoleInfoAttributes
)

參數

  • sourceDomainRoleInfoAttributes
    類型:array<System.Attribute[]
    包含要套用至來源角色屬性 (Property) 之屬性 (Attribute) 的陣列。

傳回值

類型:Microsoft.VisualStudio.Modeling.Design.RolePlayerPropertyDescriptor
模型項目角色屬性的描述項。

.NET Framework 安全性

請參閱

參考

ElementTypeDescriptor 類別

Microsoft.VisualStudio.Modeling.Design 命名空間