共用方式為


ElementMovedEventArgs Constructor (IElementDirectory, DomainClassInfo, Guid, Guid, Guid, ChangeSource)

Note: This API is now obsolete.

Obsolete constructor

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

Syntax

'宣告
<ObsoleteAttribute("Use constructor with TransactionContext parameter")> _
Public Sub New ( _
    directory As IElementDirectory, _
    domainClass As DomainClassInfo, _
    elementId As Guid, _
    sourcePartitionId As Guid, _
    destinationPartitionId As Guid, _
    changeSource As ChangeSource _
)
[ObsoleteAttribute("Use constructor with TransactionContext parameter")]
public ElementMovedEventArgs(
    IElementDirectory directory,
    DomainClassInfo domainClass,
    Guid elementId,
    Guid sourcePartitionId,
    Guid destinationPartitionId,
    ChangeSource changeSource
)
[ObsoleteAttribute(L"Use constructor with TransactionContext parameter")]
public:
ElementMovedEventArgs(
    IElementDirectory^ directory, 
    DomainClassInfo^ domainClass, 
    Guid elementId, 
    Guid sourcePartitionId, 
    Guid destinationPartitionId, 
    ChangeSource changeSource
)
[<ObsoleteAttribute("Use constructor with TransactionContext parameter")>]
new : 
        directory:IElementDirectory * 
        domainClass:DomainClassInfo * 
        elementId:Guid * 
        sourcePartitionId:Guid * 
        destinationPartitionId:Guid * 
        changeSource:ChangeSource -> ElementMovedEventArgs
public function ElementMovedEventArgs(
    directory : IElementDirectory, 
    domainClass : DomainClassInfo, 
    elementId : Guid, 
    sourcePartitionId : Guid, 
    destinationPartitionId : Guid, 
    changeSource : ChangeSource
)

Parameters

  • elementId
    Type: System.Guid
    The Id of the new ModelElement
  • sourcePartitionId
    Type: System.Guid
    source partition Id
  • destinationPartitionId
    Type: System.Guid
    destination partition Id

.NET Framework Security

See Also

Reference

ElementMovedEventArgs Class

ElementMovedEventArgs Overload

Microsoft.VisualStudio.Modeling Namespace