Compartilhar via


DslDefinitionModelToolboxHelperBase.GetToolboxItem(String, Store) Method

Definition

Returns instance of ModelingToolboxItem based on specified name. This method must be called from within a Transaction. Failure to do so will result in an exception

public:
 virtual Microsoft::VisualStudio::Modeling::Design::ModelingToolboxItem ^ GetToolboxItem(System::String ^ itemId, Microsoft::VisualStudio::Modeling::Store ^ store);
public virtual Microsoft.VisualStudio.Modeling.Design.ModelingToolboxItem GetToolboxItem (string itemId, Microsoft.VisualStudio.Modeling.Store store);
abstract member GetToolboxItem : string * Microsoft.VisualStudio.Modeling.Store -> Microsoft.VisualStudio.Modeling.Design.ModelingToolboxItem
override this.GetToolboxItem : string * Microsoft.VisualStudio.Modeling.Store -> Microsoft.VisualStudio.Modeling.Design.ModelingToolboxItem
Public Overridable Function GetToolboxItem (itemId As String, store As Store) As ModelingToolboxItem

Parameters

itemId
String

unique name of desired ToolboxItem

store
Store

Store to perform the operation against

Returns

An instance of ModelingToolboxItem if the itemId can be resolved, null otherwise

Applies to