ModelElement.OnRolePlayerPositionChanged Method
Called when the position of a role has changed.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Déclaration
Protected Friend Overridable Sub OnRolePlayerPositionChanged ( _
sourceRole As DomainRoleInfo, _
link As ElementLink, _
oldPosition As Integer, _
newPosition As Integer _
)
protected internal virtual void OnRolePlayerPositionChanged(
DomainRoleInfo sourceRole,
ElementLink link,
int oldPosition,
int newPosition
)
protected public:
virtual void OnRolePlayerPositionChanged(
DomainRoleInfo^ sourceRole,
ElementLink^ link,
int oldPosition,
int newPosition
)
abstract OnRolePlayerPositionChanged :
sourceRole:DomainRoleInfo *
link:ElementLink *
oldPosition:int *
newPosition:int -> unit
override OnRolePlayerPositionChanged :
sourceRole:DomainRoleInfo *
link:ElementLink *
oldPosition:int *
newPosition:int -> unit
function OnRolePlayerPositionChanged(
sourceRole : DomainRoleInfo,
link : ElementLink,
oldPosition : int,
newPosition : int
)
Parameters
- sourceRole
Type: Microsoft.VisualStudio.Modeling.DomainRoleInfo
The source role.
- link
Type: Microsoft.VisualStudio.Modeling.ElementLink
The element link.
- oldPosition
Type: System.Int32
The old role player position.
- newPosition
Type: System.Int32
The 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.