Inserts a flavor element at the specified position into the bucket
and automatically transforms it into an element.
| C# | Visual Basic | Visual C++ |
public void InsertElement( int index, FlavorElement flavorElement )
Public Sub InsertElement ( _ index As Integer, _ flavorElement As FlavorElement _ )
public: void InsertElement( int index, FlavorElement^ flavorElement )
- index (Int32)
- The index to insert the flavor element at.
- flavorElement (FlavorElement)
- The flavor element to insert.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | If index is less than 0
or greater than the current size of the Bucket. |
| ArgumentNullException | If flavorElement is null
and Action is not Replace. |
