Skip to main content
Version: 4.2

ResourceCollection

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

Owns scheduler resources and reports collection and item changes.

public class ResourceCollection : Collection<SchedulerResource>

Derives from or implements Collection.

Example:

var items = new ResourceCollection();
items.Add(new SchedulerResource { Text = "Planning" });

Constructors​

Instance member ResourceCollection()​

Initializes a new instance of ResourceCollection.

Methods​

Protected member ClearItems()​

Removes all items and releases ownership.

Protected member InsertItem(index, item)​

Inserts an unowned item with a unique identity.

ParameterTypeDescription
indexInt32The zero-based item index.
itemSchedulerResourceThe item passed to the operation.

Protected member RemoveItem(index)​

Removes an item without disposing application data.

ParameterTypeDescription
indexInt32The zero-based item index.

Protected member SetItem(index, item)​

Replaces an item and transfers change subscriptions.

ParameterTypeDescription
indexInt32The zero-based item index.
itemSchedulerResourceThe item passed to the operation.

Events​

Instance member Changed​

EventHandler Occurs when membership or an item changes.