EyeshotKeyedCollection<T>.TryAdd Method

Adds an element only if not already present in the collection.
Public Function TryAdd( _ 
ByVal item As T _ 
) As Boolean
This language is not supported or no code example is available.
public bool TryAdd( 
T item 
)
This language is not supported or no code example is available.

Parameters

item
T

The element to add.

Return Value

bool

True if the item was added, otherwise false.

.NET Framework

Supported in: 4.8

In this article

Definition