Scheduler for WPF | ComponentOne
C1.C1Schedule Namespace / Appointment Class / CopyFrom Method / CopyFrom(Appointment,Boolean,Boolean) Method
The Appointment instance to copy.
Specifies whether to copy internal keys.
Specifies whether to copy recurrence information if any.

In This Topic
    CopyFrom(Appointment,Boolean,Boolean) Method
    In This Topic
    Copies properties from the specified Appointment object to this one.
    Syntax
    'Declaration
     
    
    Public Overloads Sub CopyFrom( _
       ByVal app As Appointment, _
       ByVal includeKeys As Boolean, _
       ByVal includeRecurrenceInformation As Boolean _
    ) 

    Parameters

    app
    The Appointment instance to copy.
    includeKeys
    Specifies whether to copy internal keys.
    includeRecurrenceInformation
    Specifies whether to copy recurrence information if any.
    Remarks

    Set includeKeys to true if you want to receive exact copy of the specified Appointment object.

    Set includeKeys to false in order to copy only descriptive Appointment properties to other Appointment object (for example, if you want to duplicate appointment from one day to another).

    Set includeRecurrenceInformation to false to exclude RecurrenceState, ParentRecurrence and RecurrencePattern information.

    See Also