[This is preliminary documentation and is subject to change.]
Adds a T object to the end of a collection.
Declaration Syntax
C# |
public void Add( T obj )
Parameters
- obj (T)
- The object to add to the collection.
Return Value
The position at which the object was added.
Remarks
If the collection is ordered, then the Order property in the object will be set to
the position in the list at which it is added.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | Thrown if you add an object
which is invalid (Persistent.IsInvalid returns
true). |