注意:此 API 现在已废弃不用。
构造函数
命名空间: Microsoft.VisualStudio.Modeling
程序集: Microsoft.VisualStudio.Modeling.Sdk.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)
语法
声明
<ObsoleteAttribute("Use constructor with TransactionContext parameter")> _
Public Sub New ( _
directory As IElementDirectory, _
domainRole As DomainRoleInfo, _
elementLinkId As Guid, _
oldRolePlayerId As Guid, _
newRolePlayerId As Guid, _
changeSource As ChangeSource _
)
[ObsoleteAttribute("Use constructor with TransactionContext parameter")]
public RolePlayerChangedEventArgs(
IElementDirectory directory,
DomainRoleInfo domainRole,
Guid elementLinkId,
Guid oldRolePlayerId,
Guid newRolePlayerId,
ChangeSource changeSource
)
参数
- directory
类型:Microsoft.VisualStudio.Modeling.IElementDirectory
用于查找 Elements 和涉及 ElementLinks 的链接的元素目录
- domainRole
类型:Microsoft.VisualStudio.Modeling.DomainRoleInfo
角色扮演者改变的域角色
- elementLinkId
类型:System.Guid
角色扮演者改变的 ElementLink 的 Id
- oldRolePlayerId
类型:System.Guid
在更改前扮演角色 ModelElement 的 ID
- newRolePlayerId
类型:System.Guid
在更改后扮演角色 ModelElement 的 ID
- changeSource
类型:Microsoft.VisualStudio.Modeling.ChangeSource
此变化的源
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。