Share via


IExtensionPartLazyCollection<T>.Activate Method

Definition

Starts the monitoring of the collection, this method should be called once the event handlers are registered.

public void Activate ();
abstract member Activate : unit -> unit
Public Sub Activate ()

Remarks

The first invocation of PartsAdded after this method will contain all the currently available parts and will be delayed until initial discovery of parts is completed. This initial discovery may happen from a cache generated during an earlier session of Visual Studio.

Applies to