Scheduler for WinForms | ComponentOne
C1.Win.C1Schedule.4.8 Assembly / 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 System.Boolean, _
       ByVal includeRecurrenceInformation As System.Boolean _
    ) 
    public void CopyFrom( 
       Appointment app,
       System.bool includeKeys,
       System.bool includeRecurrenceInformation
    )

    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