A Variance is always created by it's root activity. In order for the CreateInstance factory method to work when Variance objects are created during calls to the data provider's ReadObject method, the data provider must assign the root activity to this CreationContext property before each object is read and databound from the data source. This class' implementation of the CreateInstance method uses the CreationContext to create a proper Variance object.
Although in this specific case the CreationContext is of type AppointmentVariance, other return types are possible and callers must not make any assumptions about the type of the CreationContext, as it may vary with the intended use of the ScheduleDataBinding object.
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