The OwnedCollection type exposes the following members.

Methods

  Name Description
Protected method AddInt
For internal use.
Public method AssignFrom
Clears the current collection, and copies the items from another one. The items are copied by cloning, and must support the ICloneable interface (if an item that does not support is encountered, an exception occurs).
Public method Clear
Removes all objects from the CollectionBase instance. This method cannot be overridden.
(Inherited from CollectionBase.)
Public method Exchange
Swap two items in collection.
Protected method GetByIndex
For internal use.
Public method GetEnumerator
Returns an enumerator that iterates through the CollectionBase instance.
(Inherited from CollectionBase.)
Protected method GetItemType
Gets the type of items in the collection. If this method returns null, items of different types can be added to the collection. Otherwise, only items of the type this method returns can be added.
Public method IndexOf
Searches for the specified Object and returns the zero-based index of the first occurrence within the entire collection.
Protected method InsertInt
For internal use.
Protected method OnClear
Called when the collection is about to be cleared.
(Overrides CollectionBase..::..OnClear()()()().)
Protected method OnClearComplete
Called after the collection has been cleared.
(Overrides CollectionBase..::..OnClearComplete()()()().)
Protected method OnInsert
Called when an item is about to be iserted.
(Overrides CollectionBase..::..OnInsert(Int32, Object).)
Protected method OnInsertComplete
Called after an item has been inserted.
(Overrides CollectionBase..::..OnInsertComplete(Int32, Object).)
Protected method OnRemove
Called when an item is about to be removed.
(Overrides CollectionBase..::..OnRemove(Int32, Object).)
Protected method OnRemoveComplete
Called after an item has been removed.
(Overrides CollectionBase..::..OnRemoveComplete(Int32, Object).)
Protected method OnSet
Called when an item is about to be set.
(Overrides CollectionBase..::..OnSet(Int32, Object, Object).)
Protected method OnSetComplete
Called after an item has been set.
(Overrides CollectionBase..::..OnSetComplete(Int32, Object, Object).)
Protected method OnValidate
Performs additional custom processes when validating a value.
(Inherited from CollectionBase.)
Public method RemoveAt
Removes the element at the specified index of the CollectionBase instance. This method is not overridable.
(Inherited from CollectionBase.)
Protected method RemoveInt
For internal use.
Protected method SetByIndex
For internal use.

Explicit Interface Implementations

  Name Description
Explicit interface implemetation Private method IList..::..Add
Adds an object to the end of the CollectionBase.
(Inherited from CollectionBase.)
Explicit interface implemetation Private method IList..::..Contains
Determines whether the CollectionBase contains a specific element.
(Inherited from CollectionBase.)
Explicit interface implemetation Private method ICollection..::..CopyTo
Copies the entire CollectionBase to a compatible one-dimensional Array, starting at the specified index of the target array.
(Inherited from CollectionBase.)
Explicit interface implemetation Private method IList..::..IndexOf
Searches for the specified Object and returns the zero-based index of the first occurrence within the entire CollectionBase.
(Inherited from CollectionBase.)
Explicit interface implemetation Private method IList..::..Insert
Inserts an element into the CollectionBase at the specified index.
(Inherited from CollectionBase.)
Explicit interface implemetation Private method IList..::..Remove
Removes the first occurrence of a specific object from the CollectionBase.
(Inherited from CollectionBase.)

See Also