建構用於交換指定之選取項目的新 DataObject。
命名空間: Microsoft.VisualStudio.GraphModel
組件: Microsoft.VisualStudio.GraphModel (在 Microsoft.VisualStudio.GraphModel.dll 中)
語法
'宣告
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
參數
- selection
型別:System.Collections.Generic.IEnumerable<GraphNode>
選定的節點
- levels
型別:System.Int32
要包含在子集中的間接取值層級數
- sourceId
型別:System.Guid
傳回值
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。