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.

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition