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
- selection
Type: System.Collections.Generic.IEnumerable<GraphNode>
Selected nodes
- levels
Type: System.Int32
Number of levels of indirection to include in the subset.
- sourceId
Type: System.Guid
Return Value
Type: System.Windows.IDataObject
.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.