AppointmentManager 类

定义

提供 API 以与用户的约会提供程序应用交互, (例如日历应用) 。 调用静态方法以显示特定于提供程序的 UI,以便用户可以执行任务。

public ref class AppointmentManager abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
class AppointmentManager final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class AppointmentManager final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
public static class AppointmentManager
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public static class AppointmentManager
Public Class AppointmentManager
继承
Object Platform::Object IInspectable AppointmentManager
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)
应用功能
appointmentsSystem

注解

有关如何管理约会的信息,请参阅 管理约会快速入门:管理约会

版本历史记录

Windows 版本 SDK 版本 已添加值
1607 14393 GetForUser

方法

GetForUser(User)

获取指定用户的 AppointmentManagerForUser 对象。

RequestStoreAsync(AppointmentStoreAccessType)

请求与调用应用程序关联的 AppointmentStore 对象。

ShowAddAppointmentAsync(Appointment, Rect)

显示约会提供程序添加约会 UI,使用户能够添加约会。

ShowAddAppointmentAsync(Appointment, Rect, Placement)

显示约会提供程序添加约会 UI,使用户能够添加约会。

ShowAppointmentDetailsAsync(String)

显示约会提供程序约会详细信息 UI,使用户能够查看指定的约会。

ShowAppointmentDetailsAsync(String, DateTime)

显示约会提供程序约会详细信息 UI,使用户能够查看指定的约会。

ShowEditNewAppointmentAsync(Appointment)

显示约会提供程序添加约会 UI,包括完整的编辑体验,使用户能够添加约会。

ShowRemoveAppointmentAsync(String, Rect)

显示约会提供程序删除约会 UI,使用户能够删除约会。

ShowRemoveAppointmentAsync(String, Rect, Placement)

显示约会提供程序删除约会 UI,使用户能够删除约会。

ShowRemoveAppointmentAsync(String, Rect, Placement, DateTime)

显示约会提供程序删除约会 UI,使用户能够删除约会。

ShowReplaceAppointmentAsync(String, Appointment, Rect)

显示约会提供程序替换约会 UI,使用户能够替换约会。

ShowReplaceAppointmentAsync(String, Appointment, Rect, Placement)

显示约会提供程序替换约会 UI,使用户能够替换约会。

ShowReplaceAppointmentAsync(String, Appointment, Rect, Placement, DateTime)

显示约会提供程序替换约会 UI,使用户能够替换约会。

ShowTimeFrameAsync(DateTime, TimeSpan)

显示约会提供程序应用的主要 UI。 这通常显示约会日历中的时间范围。

适用于

另请参阅