SaveAppointmentTask Class

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Allows an application to launch the calendar application with a new appointment displayed. Use this to allow users to add an appointment to their calendar from your application.

Inheritance Hierarchy

System..::.Object
  Microsoft.Phone.Tasks..::.SaveAppointmentTask

Namespace:  Microsoft.Phone.Tasks
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
XMLNS for XAML: Not mapped to an xmlns.

Syntax

Public NotInheritable Class SaveAppointmentTask
public sealed class SaveAppointmentTask
<SaveAppointmentTask .../>

The SaveAppointmentTask type exposes the following members.

Constructors

  Name Description
SaveAppointmentTask Initializes a new instance of the SaveAppointmentTask class.

Top

Properties

  Name Description
AppointmentStatus Gets or sets the appointment status that will be set for the new appointment when the Calendar application is launched.
Details Gets or sets the details text that will be set for the new appointment when the Calendar application is launched.
EndTime Gets or sets the end time for the new appointment when the Calendar application is launched.
IsAllDayEvent Gets or sets the whether the new appointment shown when the Calendar application is launched is an all day event.
Location Gets or sets the location string that will be set for the new appointment when the Calendar application is launched.
Reminder Gets or sets the reminder time that will be set for the new appointment when the Calendar application is launched.
StartTime Gets or sets the start time that will be set for the new appointment when the Calendar application is launched.
Subject Gets or sets the subject that will be set for the new appointment when the Calendar application is launched.

Top

Methods

  Name Description
Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
GetType Gets the Type of the current instance. (Inherited from Object.)
MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Show Shows the calendar application with a new appointment displayed.
ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Version Information

Windows Phone OS

Supported in: 8.1, 8.0

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Phone.Tasks Namespace

Other Resources

Launchers and Choosers for Windows Phone 8

How to use the save appointment task for Windows Phone 8