ElementLink.OnRolePlayerChanged(DomainRoleInfo, ModelElement, ModelElement, Int32) 方法

定義

角色扮演者已變更時呼叫Called when the role player has be changed

protected:
 virtual void OnRolePlayerChanged(Microsoft::VisualStudio::Modeling::DomainRoleInfo ^ domainRole, Microsoft::VisualStudio::Modeling::ModelElement ^ oldPlayer, Microsoft::VisualStudio::Modeling::ModelElement ^ newPlayer, int linkIndex);
protected virtual void OnRolePlayerChanged (Microsoft.VisualStudio.Modeling.DomainRoleInfo domainRole, Microsoft.VisualStudio.Modeling.ModelElement oldPlayer, Microsoft.VisualStudio.Modeling.ModelElement newPlayer, int linkIndex);
abstract member OnRolePlayerChanged : Microsoft.VisualStudio.Modeling.DomainRoleInfo * Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.ModelElement * int -> unit
override this.OnRolePlayerChanged : Microsoft.VisualStudio.Modeling.DomainRoleInfo * Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.ModelElement * int -> unit
Protected Overridable Sub OnRolePlayerChanged (domainRole As DomainRoleInfo, oldPlayer As ModelElement, newPlayer As ModelElement, linkIndex As Integer)

參數

domainRole
DomainRoleInfo

已變更角色的 DomainRoleInfoDomainRoleInfo of the role that has changed

oldPlayer
ModelElement

舊的角色扮演者the old role player

newPlayer
ModelElement

新的角色扮演者the new role player

linkIndex
Int32

連結索引the link index

適用於