Version

OnInitializeActivity Method

Initializes an Activity object that has been retrieved from the data source.
Syntax
'Declaration
 
Protected Overridable Sub OnInitializeActivity( _
   ByVal appointment As Appointment, _
   ByVal ownerCollection As IList _
) 
protected virtual void OnInitializeActivity( 
   Appointment appointment,
   IList ownerCollection
)

Parameters

appointment
An Activity to be initialized and added to the ownerCollection.
ownerCollection
A container to hold the appointment once it has been initialized.
Remarks

Inheritors should always call the base class implementation of OnInitializeActivity before adding their own extended initialization logic. This ensures the necessary fields of the Activity are properly initialized, and the Activity is added to the ownerCollection.

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