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
)
參數
- link
類型:Microsoft.VisualStudio.Modeling.ElementLink
項目連結。
- domainRoleId
類型:System.Guid
要設定其角色扮演者的網域角色。
- newRolePlayerElement
類型:Microsoft.VisualStudio.Modeling.ModelElement
新角色扮演者。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。