Version

ReplaceAll Method

Clears then replaces all the elements in the collection with the elements from the specified collection.
Syntax
'Declaration
 
Public Sub ReplaceAll( _
   ByVal newEffectStopCollection As EffectStopCollection(Of T) _
) 
public void ReplaceAll( 
   EffectStopCollection<T> newEffectStopCollection
)

Parameters

newEffectStopCollection
The collection that contains the elements to be inserted into the current collection after it is cleared.
Remarks

This method provides a mechanism for replacing the entire contents of the collection. To generate a single property changed notification as a result of this action, bracket the call to this method with calls to SuspendChangeNotifications and ResumeChangeNotifications.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also