Partager via


RolePlayerChangedEventArgs Constructor (IElementDirectory, DomainRoleInfo, Guid, Guid, Guid, ChangeSource)

Note: This API is now obsolete.

Constructor

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

Syntax

'Declaration
<ObsoleteAttribute("Use constructor with TransactionContext parameter")> _
Public Sub New ( _
    directory As IElementDirectory, _
    domainRole As DomainRoleInfo, _
    elementLinkId As Guid, _
    oldRolePlayerId As Guid, _
    newRolePlayerId As Guid, _
    changeSource As ChangeSource _
)
[ObsoleteAttribute("Use constructor with TransactionContext parameter")]
public RolePlayerChangedEventArgs(
    IElementDirectory directory,
    DomainRoleInfo domainRole,
    Guid elementLinkId,
    Guid oldRolePlayerId,
    Guid newRolePlayerId,
    ChangeSource changeSource
)
[ObsoleteAttribute(L"Use constructor with TransactionContext parameter")]
public:
RolePlayerChangedEventArgs(
    IElementDirectory^ directory, 
    DomainRoleInfo^ domainRole, 
    Guid elementLinkId, 
    Guid oldRolePlayerId, 
    Guid newRolePlayerId, 
    ChangeSource changeSource
)
[<ObsoleteAttribute("Use constructor with TransactionContext parameter")>]
new : 
        directory:IElementDirectory * 
        domainRole:DomainRoleInfo * 
        elementLinkId:Guid * 
        oldRolePlayerId:Guid * 
        newRolePlayerId:Guid * 
        changeSource:ChangeSource -> RolePlayerChangedEventArgs
public function RolePlayerChangedEventArgs(
    directory : IElementDirectory, 
    domainRole : DomainRoleInfo, 
    elementLinkId : Guid, 
    oldRolePlayerId : Guid, 
    newRolePlayerId : Guid, 
    changeSource : ChangeSource
)

Parameters

  • elementLinkId
    Type: System.Guid

    The Id of the ElementLink whose role-player changed

  • oldRolePlayerId
    Type: System.Guid

    The Id of the ModelElement that was playing the role before the change

  • newRolePlayerId
    Type: System.Guid

    The Id of the ModelElement that is playing the role after the change

.NET Framework Security

See Also

Reference

RolePlayerChangedEventArgs Class

RolePlayerChangedEventArgs Overload

Microsoft.VisualStudio.Modeling Namespace