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.

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition