[]
        
(Showing Draft Content)

C1.Schedule.Appointment.-ctor

Appointment Constructor

Appointment(int)

Initializes a new instance of the Appointment class with the specified key.

Declaration
public Appointment(int key)
Parameters
Type Name Description
int key

The int value which should be used as appointment key.

Remarks

Use this constructor if your business logic requires setting custom key value. Make sure that you use the correct constructor overload (with integer or Guid key value) and that key value is unique.

Appointment(Guid)

Initializes a new instance of the Appointment class with the specified key.

Declaration
public Appointment(Guid key)
Parameters
Type Name Description
Guid key

The Guid value which should be used as appointment key.

Remarks

Use this constructor if your business logic requires setting custom key value. Make sure that you use the correct constructor overload (with integer or Guid key value) and that key value is unique.

Appointment()

Initializes a new instance of the Appointment class.

Declaration
public Appointment()
Remarks

Creates an appointment with default properties.

Appointment(DateTime, DateTime)

Initializes a new instance of the Appointment class with the specified parameters.

Declaration
public Appointment(DateTime start, DateTime end)
Parameters
Type Name Description
DateTime start

The DateTime value which specifies the start date and time of the appointment.

DateTime end

The DateTime value which specifies the end date and time of the appointment.

Appointment(DateTime, TimeSpan)

Initializes a new instance of the Appointment class with the specified parameters.

Declaration
public Appointment(DateTime start, TimeSpan duration)
Parameters
Type Name Description
DateTime start

The DateTime value which specifies the start date and time of the appointment.

TimeSpan duration

The TimeSpan value which specifies the duration of the appointment.

Appointment(DateTime, DateTime, string)

Initializes a new instance of the Appointment class with the specified parameters.

Declaration
public Appointment(DateTime start, DateTime end, string subject)
Parameters
Type Name Description
DateTime start

The DateTime value which specifies the start date and time of the appointment.

DateTime end

The DateTime value which specifies the end date and time of the appointment.

string subject

The string value which contains the subject of the appointment.

Appointment(DateTime, TimeSpan, string)

Initializes a new instance of the Appointment class with the specified parameters.

Declaration
public Appointment(DateTime start, TimeSpan duration, string subject)
Parameters
Type Name Description
DateTime start

The DateTime value which specifies the start date and time of the appointment.

TimeSpan duration

The TimeSpan value which specifies the duration of the appointment.

string subject

The string value which contains the subject of the appointment.

Appointment(SerializationInfo, StreamingContext)

Special constructor for deserialization.

Declaration
protected Appointment(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
SerializationInfo info

The SerializationInfo.

StreamingContext context

The context information.