DomainRoleInfo.SetRolePlayer 方法 (ElementLink, Guid, ModelElement)

将元素分配到关系的角色。

命名空间:  Microsoft.VisualStudio.Modeling
程序集:  Microsoft.VisualStudio.Modeling.Sdk.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)

语法

声明
Public Shared Sub SetRolePlayer ( _
    link As ElementLink, _
    domainRoleId As Guid, _
    newRolePlayerElement As ModelElement _
)
public static void SetRolePlayer(
    ElementLink link,
    Guid domainRoleId,
    ModelElement newRolePlayerElement
)

参数

  • domainRoleId
    类型:System.Guid
    需要准备角色扮演者的域角色。

.NET Framework 安全性

请参阅

参考

DomainRoleInfo 类

SetRolePlayer 重载

Microsoft.VisualStudio.Modeling 命名空间