GraphDataObject.Create Method (IEnumerable<GraphNode>, Guid, Int32, array<DataFormat )
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, _
formats As DataFormat() _
) As IDataObject
public static IDataObject Create(
IEnumerable<GraphNode> selection,
Guid sourceGraphId,
int levels,
DataFormat[] formats
)
public:
static IDataObject^ Create(
IEnumerable<GraphNode^>^ selection,
Guid sourceGraphId,
int levels,
array<DataFormat^>^ formats
)
static member Create :
selection:IEnumerable<GraphNode> *
sourceGraphId:Guid *
levels:int *
formats:DataFormat[] -> IDataObject
public static function Create(
selection : IEnumerable<GraphNode>,
sourceGraphId : Guid,
levels : int,
formats : DataFormat[]
) : IDataObject
Parameters
selection
Type: IEnumerable<GraphNode>The nodes to include (plus all their descendants)
sourceGraphId
Type: GuidThe unique id of the source Graph object.
levels
Type: Int32The number of links away from each selected object to include in the drag/drop subset.
formats
Type: array<DataFormat[]The DGML formats to publish in the IDataObject
Return Value
Type: 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.