共用方式為


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
)

參數

  • elementLinkId
    類型:System.Guid
    其角色扮演者變更的 ElementLink 的 ID
  • oldRolePlayerId
    類型:System.Guid
    在變更前扮演角色的 ModelElement 的 ID
  • newRolePlayerId
    類型:System.Guid
    在變更後扮演角色的 ModelElement 的 ID

.NET Framework 安全性

請參閱

參考

RolePlayerChangedEventArgs 類別

RolePlayerChangedEventArgs 多載

Microsoft.VisualStudio.Modeling 命名空間