ModelElement.OnRolePlayerPositionChanged Method

Alerts listeners that the position of a role is about to change.

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)

Syntax

'Declaration
Protected Friend Overridable Sub OnRolePlayerPositionChanged ( _
    sourceRole As DomainRoleInfo, _
    link As ElementLink, _
    oldPosition As Integer, _
    newPosition As Integer _
)
'Usage
Dim sourceRole As DomainRoleInfo 
Dim link As ElementLink 
Dim oldPosition As Integer 
Dim newPosition As Integer 

Me.OnRolePlayerPositionChanged(sourceRole, _
    link, oldPosition, newPosition)
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
)
protected internal function OnRolePlayerPositionChanged(
    sourceRole : DomainRoleInfo, 
    link : ElementLink, 
    oldPosition : int, 
    newPosition : int
)

Parameters

  • oldPosition
    Type: System.Int32

    The old role player position.

  • newPosition
    Type: System.Int32

    The new role player position.

.NET Framework Security

See Also

Reference

ModelElement Class

ModelElement Members

Microsoft.VisualStudio.Modeling Namespace