Version

OnInitializeResource Method

Initializes a Resource object that has been retrieved from the data source.
Syntax
'Declaration
 
Protected Overridable Sub OnInitializeResource( _
   ByVal resource As Resource, _
   ByVal ownerCollection As IList _
) 
protected virtual void OnInitializeResource( 
   Resource resource,
   IList ownerCollection
)

Parameters

resource
A Resource to be initialized and added to the ownerCollection.
ownerCollection
A container to hold the resource once it has been initialized.
Remarks

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).

Requirements

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

See Also