EN
此内容没有您的语言版本,但有英语版本。

AppointmentManager class

Applies to Windows and Windows Phone

Provides APIs to interact with the user’s Appointments provider app (for example, the Calendar app). Call static methods to display provider-specific UI so that the user can perform tasks.

Syntax


var appointmentManager = Windows.ApplicationModel.Appointments.AppointmentManager;

Attributes

[MarshalingBehavior(Standard)]
[Version(0x06030000)]

Members

The AppointmentManager class has these types of members:

Methods

The AppointmentManager class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
RequestStoreAsync Requests the AppointmentStore object associated with the calling application.
ShowAddAppointmentAsync(Appointment,Rect) Shows the Appointments provider Add Appointment UI, to enable the user to add an appointment.
ShowAddAppointmentAsync(Appointment,Rect,Placement) Shows the Appointments provider Add Appointment UI, to enable the user to add an appointment.
ShowAppointmentDetailsAsync(String) Shows the Appointments provider Appointment Details UI, to enable the user to view the specified appointment.
ShowAppointmentDetailsAsync(String,DateTime) Shows the Appointments provider Appointment Details UI, to enable the user to view the specified appointment.
ShowEditNewAppointmentAsync Shows the Appointments provider Add Appointment UI including the full edit experience, to enable the user to add an appointment.
ShowRemoveAppointmentAsync(String,Rect) Shows the Appointments provider Remove Appointment UI, to enable the user to remove an appointment.
ShowRemoveAppointmentAsync(String,Rect,Placement) Shows the Appointments provider Remove Appointment UI, to enable the user to remove an appointment.
ShowRemoveAppointmentAsync(String,Rect,Placement,DateTime) Shows the Appointments provider Remove Appointment UI, to enable the user to remove an appointment.
ShowReplaceAppointmentAsync(String,Appointment,Rect) Shows the Appointments provider Replace Appointment UI, to enable the user to replace an appointment.
ShowReplaceAppointmentAsync(String,Appointment,Rect,Placement) Shows the Appointments provider Replace Appointment UI, to enable the user to replace an appointment.
ShowReplaceAppointmentAsync(String,Appointment,Rect,Placement,DateTime) Shows the Appointments provider Replace Appointment UI, to enable the user to replace an appointment.
ShowTimeFrameAsync Shows the Appointments provider app's primary UI. This typically displays a time frame from an appointments calendar.

 

Remarks

For info about how to manage appointments, see Quickstart: Managing appointments (XAML) and Quickstart: Managing appointments (HTML).

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps only]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.ApplicationModel.Appointments
Windows::ApplicationModel::Appointments [C++]

Metadata

Windows.winmd

See also

Appointments API sample
Object

 

 

显示:
© 2014 Microsoft