[]
Initializes a new instance of the Appointment class with the specified key.
public Appointment(int key)
Type | Name | Description |
---|---|---|
int | key | The int value which should be used as appointment key. |
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.
Initializes a new instance of the Appointment class with the specified key.
public Appointment(Guid key)
Type | Name | Description |
---|---|---|
Guid | key | The Guid value which should be used as appointment key. |
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.
Initializes a new instance of the Appointment class.
public Appointment()
Creates an appointment with default properties.
Initializes a new instance of the Appointment class with the specified parameters.
public Appointment(DateTime start, DateTime end)
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. |
Initializes a new instance of the Appointment class with the specified parameters.
public Appointment(DateTime start, TimeSpan duration)
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. |
Initializes a new instance of the Appointment class with the specified parameters.
public Appointment(DateTime start, DateTime end, string subject)
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. |
Initializes a new instance of the Appointment class with the specified parameters.
public Appointment(DateTime start, TimeSpan duration, string subject)
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. |
Special constructor for deserialization.
protected Appointment(SerializationInfo info, StreamingContext context)
Type | Name | Description |
---|---|---|
SerializationInfo | info | The SerializationInfo. |
StreamingContext | context | The context information. |