'Declaration Protected Overridable Sub OnInitializeResource( _ ByVal resource As Resource, _ ByVal ownerCollection As IList _ )
protected virtual void OnInitializeResource( Resource resource, IList ownerCollection )
Inheritors should always call the base class implementation of OnInitializeResource before adding their own extended initialization logic. This ensures the necessary fields of the Resource receive proper initialization, and the Resource has been added to the ownerCollection (as long as it doesn't already exist; duplicate Resources by key are discarded).
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, 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