EyeshotKeyedCollection<T>.AddOrReplace Method

Adds or replaces an element.
Public Overridable Function AddOrReplace( _ 
ByVal newItem As T _ 
) As Boolean
This language is not supported or no code example is available.
public virtual bool AddOrReplace( 
T newItem 
)
This language is not supported or no code example is available.

Parameters

newItem
T

The new element.

Return Value

bool

True if the element replaced another item that was already in use, otherwise false.

Exception type Condition

EyeshotException

Thrown when an error occurs adding the element.

Remarks
 
When the replaced item was already in use the EntityList.Regen must be called.

.NET Framework

Supported in: 4.8

In this article

Definition