ToolboxService.GetItemContainers Method

Definition

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.

C#
protected abstract System.Collections.IList GetItemContainers();

Returns

An IList containing all items on the toolbox.

Applies to

.NET Framework 4.8.1 i druge verzije
Proizvod Verzije
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

GetItemContainers(String)

Returns an IList containing all items in a given category.

C#
protected abstract System.Collections.IList GetItemContainers(string categoryName);

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.

Applies to

.NET Framework 4.8.1 i druge verzije
Proizvod Verzije
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1