ModelElement.OnRolePlayerPositionChanging Method
Called when a role player position is about to change.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)
Syntax
'Declaration
Protected Friend Overridable Sub OnRolePlayerPositionChanging ( _
sourceRole As DomainRoleInfo, _
link As ElementLink, _
oldPosition As Integer, _
newPosition As Integer _
)
protected internal virtual void OnRolePlayerPositionChanging(
DomainRoleInfo sourceRole,
ElementLink link,
int oldPosition,
int newPosition
)
protected public:
virtual void OnRolePlayerPositionChanging(
DomainRoleInfo^ sourceRole,
ElementLink^ link,
int oldPosition,
int newPosition
)
abstract OnRolePlayerPositionChanging :
sourceRole:DomainRoleInfo *
link:ElementLink *
oldPosition:int *
newPosition:int -> unit
override OnRolePlayerPositionChanging :
sourceRole:DomainRoleInfo *
link:ElementLink *
oldPosition:int *
newPosition:int -> unit
function OnRolePlayerPositionChanging(
sourceRole : DomainRoleInfo,
link : ElementLink,
oldPosition : int,
newPosition : int
)
Parameters
sourceRole
Type: Microsoft.VisualStudio.Modeling.DomainRoleInfoThe source role.
link
Type: Microsoft.VisualStudio.Modeling.ElementLinkThe element link.
oldPosition
Type: Int32The old role player position.
newPosition
Type: Int32The new role player position.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.