为指定的元素初始化 LinkedElementCollection<T> 类的一个新实例。
命名空间: Microsoft.VisualStudio.Modeling
程序集: Microsoft.VisualStudio.Modeling.Sdk.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)
语法
声明
Public Sub New ( _
sourceRolePlayer As ModelElement, _
sourceRoleId As Guid _
)
public LinkedElementCollection(
ModelElement sourceRolePlayer,
Guid sourceRoleId
)
参数
- sourceRolePlayer
类型:Microsoft.VisualStudio.Modeling.ModelElement
在一个关系中表示源角色的元素。
- sourceRoleId
类型:System.Guid
关系中源元素的 ID。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。