[]
Creates the new Appointment object with default settings and adds it to the collection.
public Appointment Add()
Public Function Add() As Appointment
| Type | Description |
|---|---|
| Appointment | The Appointment object. |
Creates the new Appointment object with specified parameters and adds it to the collection.
public Appointment Add(DateTime start, DateTime end)
Public Function Add(start As Date, [end] As Date) As Appointment
| 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. |
| Type | Description |
|---|---|
| Appointment | The Appointment object. |
Creates the new Appointment object with specified parameters and adds it to the collection.
public Appointment Add(DateTime start, TimeSpan duration)
Public Function Add(start As Date, duration As TimeSpan) As Appointment
| 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. |
| Type | Description |
|---|---|
| Appointment | The Appointment object. |
Creates the new Appointment object with specified parameters and adds it to the collection.
public Appointment Add(DateTime start, DateTime end, string subject)
Public Function Add(start As Date, [end] As Date, subject As String) As Appointment
| 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. |
| Type | Description |
|---|---|
| Appointment | The Appointment object. |
Creates the new Appointment object with specified parameters and adds it to the collection.
public Appointment Add(DateTime start, TimeSpan duration, string subject)
Public Function Add(start As Date, duration As TimeSpan, subject As String) As Appointment
| 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. |
| Type | Description |
|---|---|
| Appointment | The Appointment object. |