EyeshotKeyedCollection<T>.ReplaceItem Method

Replaces the element with the same key.
Public Overridable Function ReplaceItem( _ 
ByVal newItem As T _ 
) As Boolean
This language is not supported or no code example is available.
public virtual bool ReplaceItem( 
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 replaced item was already in use.

Exception type Condition

EyeshotException

Thrown when element key is not found.

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