按 LocalID 显示约会不起作用,但 RoamingID 有效 - 为什么?
Showing appointment by LocalID does not work, but RoamingID works - why?
在我的应用程序中,我想使用 Windows 的内置日历向用户显示 Appointment
详细信息。所以我调用 AppointmentManager.ShowAppointmentDetailsAsync(appointment.LocalId)
- 它会打开日历应用程序,但 不会 打开约会详细信息,而是跳转到当前日期并显示日历。
但是当调用 AppointmentManager.ShowAppointmentDetailsAsync(appointment.RoamingId)
(RoamingId 而不是 LocalId)时,它按预期工作 - 约会正在打开日历应用程序中的编辑模式。
现在 AppointmentManager.ShowAppointmentDetailsAsync
的文档说明了其 ID 参数:
appointmentId
Type: String [JavaScript] | System.String [.NET] |
Platform::String [C++] The LocalId of the appointment to be displayed.
这是什么?错误的文档?错误?这不应该使用本地约会 ID 吗?
(SDK版本10.0.14393.0, Win 10周年)
感谢您的反馈。这似乎是一个文档问题。 AppointmentManager.ShowAppointmentDetailsAsync method should be the same as what used in ShowReplaceAppointmentAsync or ShowRemoveAppointmentAsync method. In these two methods, appointmentId
is typically obtained from the async return value of a previous ShowAddAppointmentAsync or ShowReplaceAppointmentAsync call, which actually is the Appointment.RoamingId.
中使用的appointmentId
参数
我们将在内部报告此问题。您还可以使用每个 Windows 开发中心页面底部的反馈来发送您的反馈。您的反馈让 Windows 变得更好!
在我的应用程序中,我想使用 Windows 的内置日历向用户显示 Appointment
详细信息。所以我调用 AppointmentManager.ShowAppointmentDetailsAsync(appointment.LocalId)
- 它会打开日历应用程序,但 不会 打开约会详细信息,而是跳转到当前日期并显示日历。
但是当调用 AppointmentManager.ShowAppointmentDetailsAsync(appointment.RoamingId)
(RoamingId 而不是 LocalId)时,它按预期工作 - 约会正在打开日历应用程序中的编辑模式。
现在 AppointmentManager.ShowAppointmentDetailsAsync
的文档说明了其 ID 参数:
appointmentId
Type: String [JavaScript] | System.String [.NET] | Platform::String [C++] The LocalId of the appointment to be displayed.
这是什么?错误的文档?错误?这不应该使用本地约会 ID 吗?
(SDK版本10.0.14393.0, Win 10周年)
感谢您的反馈。这似乎是一个文档问题。 AppointmentManager.ShowAppointmentDetailsAsync method should be the same as what used in ShowReplaceAppointmentAsync or ShowRemoveAppointmentAsync method. In these two methods, appointmentId
is typically obtained from the async return value of a previous ShowAddAppointmentAsync or ShowReplaceAppointmentAsync call, which actually is the Appointment.RoamingId.
appointmentId
参数
我们将在内部报告此问题。您还可以使用每个 Windows 开发中心页面底部的反馈来发送您的反馈。您的反馈让 Windows 变得更好!