Independentsoft
- any library, any programming language
Home
Purchase
Support
Company
Contact
MSG .NET
>
Tutorial
> Create appointment
The following example shows you how to create an appointment.
C# example
using System; using Independentsoft.Msg; namespace Sample { class Program { static void Main(string[] args) { Message appointment = new Message(); appointment.MessageClass = "IPM.Appointment"; appointment.Subject = "Test"; appointment.Body = "Body text"; appointment.Location = "My Office"; appointment.AppointmentStartTime = DateTime.Today.AddHours(16); appointment.AppointmentEndTime = DateTime.Today.AddHours(17); appointment.Save("c:\\temp\\appointment.msg", true); } } }
VB example
Imports System Imports Independentsoft.Msg Namespace Sample Class Module1 Shared Sub Main(ByVal args As String()) Dim appointment As New Message() appointment.MessageClass = "IPM.Appointment" appointment.Subject = "Test" appointment.Body = "Body text" appointment.Location = "My Office" appointment.AppointmentStartTime = DateTime.Today.AddHours(16) appointment.AppointmentEndTime = DateTime.Today.AddHours(17) appointment.Save("c:\temp\appointment.msg", True) End Sub End Class End Namespace
Need help? Ask our developers:
Name*
Email*
Message*