[]
Initializes a new instance of the Appointment class with the specified key.
public Appointment(int key)
Public Sub New(key As Integer)
| 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)
Public Sub New(key As Guid)
| 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()
Public Sub New()
Creates an appointment with default properties.
Initializes a new instance of the Appointment class with the specified parameters.
public Appointment(DateTime start, DateTime end)
Public Sub New(start As Date, [end] As Date)
| 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)
Public Sub New(start As Date, duration As TimeSpan)
| 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)
Public Sub New(start As Date, [end] As Date, subject As String)
| 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)
Public Sub New(start As Date, duration As TimeSpan, subject As String)
| 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)
Protected Sub New(info As SerializationInfo, context As StreamingContext)
| Type | Name | Description |
|---|---|---|
| SerializationInfo | info | The SerializationInfo. |
| StreamingContext | context | The context information. |