GraphCommand 建構函式
建立新的 GraphCommand。
命名空間: Microsoft.VisualStudio.GraphModel
組件: Microsoft.VisualStudio.GraphModel (在 Microsoft.VisualStudio.GraphModel.dll 中)
語法
'宣告
Public Sub New ( _
definition As GraphCommandDefinition, _
targetCategories As IEnumerable(Of GraphCategory), _
linkCategories As IEnumerable(Of GraphCategory), _
trackChanges As Boolean _
)
public GraphCommand(
GraphCommandDefinition definition,
IEnumerable<GraphCategory> targetCategories,
IEnumerable<GraphCategory> linkCategories,
bool trackChanges
)
public:
GraphCommand(
GraphCommandDefinition^ definition,
IEnumerable<GraphCategory^>^ targetCategories,
IEnumerable<GraphCategory^>^ linkCategories,
bool trackChanges
)
new :
definition:GraphCommandDefinition *
targetCategories:IEnumerable<GraphCategory> *
linkCategories:IEnumerable<GraphCategory> *
trackChanges:bool -> GraphCommand
public function GraphCommand(
definition : GraphCommandDefinition,
targetCategories : IEnumerable<GraphCategory>,
linkCategories : IEnumerable<GraphCategory>,
trackChanges : boolean
)
參數
- definition
型別:Microsoft.VisualStudio.GraphModel.GraphCommandDefinition
- targetCategories
型別:System.Collections.Generic.IEnumerable<GraphCategory>
- linkCategories
型別:System.Collections.Generic.IEnumerable<GraphCategory>
- trackChanges
型別:System.Boolean
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。