ToolboxService.GetItemContainers Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns an IList containing all items on the toolbox.
Overloads
GetItemContainers() |
Returns an IList containing all items on the toolbox. |
GetItemContainers(String) |
Returns an IList containing all items in a given category. |
Remarks
The items in the list must be ToolboxItemContainer objects. If the toolbox implementation is organized in categories, this retrieves a combined list of all categories. The list must be read/write, as new items may be added to it.
When the toolbox service adds a new item, it first calls the CreateItemContainer method and then adds the new item to the IList returned from the GetItemContainers method.
If a category name is provided, only the items in that category should be returned. If no category is specified, all items should be returned.
GetItemContainers()
Returns an IList containing all items on the toolbox.
protected:
abstract System::Collections::IList ^ GetItemContainers();
protected abstract System.Collections.IList GetItemContainers ();
abstract member GetItemContainers : unit -> System.Collections.IList
Protected MustOverride Function GetItemContainers () As IList
Returns
An IList containing all items on the toolbox.
Applies to
GetItemContainers(String)
Returns an IList containing all items in a given category.
protected:
abstract System::Collections::IList ^ GetItemContainers(System::String ^ categoryName);
protected abstract System.Collections.IList GetItemContainers (string categoryName);
abstract member GetItemContainers : string -> System.Collections.IList
Protected MustOverride Function GetItemContainers (categoryName As String) As IList
Parameters
- categoryName
- String
The category for which to retrieve the item container list.
Returns
An IList containing all items in the category specified by categoryName
.
Remarks
If the category specified by the categoryName
parameter does not exist, the GetItemContainers method should throw a meaningful exception.