创建模型元素角色属性的描述符。
命名空间: 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
)
参数
- sourceRolePlayer
类型:Microsoft.VisualStudio.Modeling.ModelElement
扮演源角色的模型元素。
- targetRoleInfo
类型:Microsoft.VisualStudio.Modeling.DomainRoleInfo
目标角色扮演者的域角色信息。
- sourceDomainRoleInfoAttributes
类型:array<System.Attribute[]
包含特性应用于源角色属性的数组。
返回值
类型:Microsoft.VisualStudio.Modeling.Design.RolePlayerPropertyDescriptor
模型元素的角色属性的描述符。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。