创建交换的所选节点(以及它们的所有子代) IDataObject。
命名空间: Microsoft.VisualStudio.GraphModel
程序集: Microsoft.VisualStudio.GraphModel(在 Microsoft.VisualStudio.GraphModel.dll 中)
语法
声明
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
参数
- selection
类型:System.Collections.Generic.IEnumerable<GraphNode>
包含的节点(以及它们的所有子代)
- sourceGraphId
类型:System.Guid
源关系图对象的唯一ID
- levels
类型:System.Int32
链接数其中包括的每个选定的对象中的拖放子集。
返回值
类型:System.Windows.IDataObject
IDataObject或空,如果选定内容为空
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。