Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Create an IDataObject for exchanging the selected nodes (and all their descendants).
Namespace:  Microsoft.VisualStudio.GraphModel
Assembly:  Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
Syntax
'Declaration
Public Shared Function Create ( _
    selection As IEnumerable(Of GraphNode), _
    sourceGraphId As Guid, _
    levels As Integer _
) As IDataObject
public static IDataObject Create(
    IEnumerable<GraphNode> selection,
    Guid sourceGraphId,
    int levels
)
public:
static IDataObject^ Create(
    IEnumerable<GraphNode^>^ selection, 
    Guid sourceGraphId, 
    int levels
)
static member Create : 
        selection:IEnumerable<GraphNode> * 
        sourceGraphId:Guid * 
        levels:int -> IDataObject
public static function Create(
    selection : IEnumerable<GraphNode>, 
    sourceGraphId : Guid, 
    levels : int
) : IDataObject
Parameters
- selection 
 Type: System.Collections.Generic.IEnumerable<GraphNode>- The nodes to include (plus all their descendants) 
- sourceGraphId 
 Type: System.Guid- The unique id of the source Graph object 
- levels 
 Type: System.Int32- The number of links away from each selected object to include in the drag/drop subset. 
Return Value
Type: System.Windows.IDataObject
An IDataObject or null if the selection is empty
.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.