命名空间: Microsoft.VisualStudio.Modeling
程序集: Microsoft.VisualStudio.Modeling.Sdk.11.0(在 Microsoft.VisualStudio.Modeling.Sdk.11.0.dll 中)
语法
声明
Public Sub New ( _
directory As IElementDirectory, _
domainRole As DomainRoleInfo, _
elementLinkId As Guid, _
oldRolePlayerId As Guid, _
newRolePlayerId As Guid, _
changeSource As ChangeSource, _
transactionContext As TransactionContext _
)
public RolePlayerChangedEventArgs(
IElementDirectory directory,
DomainRoleInfo domainRole,
Guid elementLinkId,
Guid oldRolePlayerId,
Guid newRolePlayerId,
ChangeSource changeSource,
TransactionContext transactionContext
)
参数
- directory
类型:Microsoft.VisualStudio.Modeling.IElementDirectory
用于的元素的内容查找元素和 ModelElement 链接。
- 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
此更改的源
- transactionContext
类型:Microsoft.VisualStudio.Modeling.TransactionContext
发生更改的事务上下文。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。