RolePlayerChangedEventArgs 建構函式 (IElementDirectory, DomainRoleInfo, Guid, Guid, Guid, ChangeSource, TransactionContext)
命名空間: Microsoft.VisualStudio.Modeling
組件: Microsoft.VisualStudio.Modeling.Sdk.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.12.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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。