Delen via


GraphDataObject.Create Method

Construct a new DataObject for exchanging the given selection.

Namespace:  Microsoft.VisualStudio.GraphModel
Assembly:  Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)

Syntax

'Declaration
Public Shared Function Create ( _
    selection As IEnumerable(Of GraphNode), _
    levels As Integer, _
    sourceId As Guid _
) As IDataObject
public static IDataObject Create(
    IEnumerable<GraphNode> selection,
    int levels,
    Guid sourceId
)
public:
static IDataObject^ Create(
    IEnumerable<GraphNode^>^ selection, 
    int levels, 
    Guid sourceId
)
static member Create : 
        selection:IEnumerable<GraphNode> * 
        levels:int * 
        sourceId:Guid -> IDataObject 
public static function Create(
    selection : IEnumerable<GraphNode>, 
    levels : int, 
    sourceId : Guid
) : IDataObject

Parameters

  • levels
    Type: System.Int32
    Number of levels of indirection to include in the subset.

Return Value

Type: System.Windows.IDataObject

.NET Framework Security

See Also

Reference

GraphDataObject Class

Microsoft.VisualStudio.GraphModel Namespace