AppointmentStore.ShowReplaceAppointmentAsync 方法

定义

重载

ShowReplaceAppointmentAsync(String, Appointment, Rect)

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

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

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

ShowReplaceAppointmentAsync(String, Appointment, Rect)

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

public:
 virtual IAsyncOperation<Platform::String ^> ^ ShowReplaceAppointmentAsync(Platform::String ^ localId, Appointment ^ appointment, Rect selection) = ShowReplaceAppointmentAsync;
/// [Windows.Foundation.Metadata.Overload("ShowReplaceAppointmentAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<winrt::hstring> ShowReplaceAppointmentAsync(winrt::hstring const& localId, Appointment const& appointment, Rect const& selection);
/// [Windows.Foundation.Metadata.Overload("ShowReplaceAppointmentAsync")]
IAsyncOperation<winrt::hstring> ShowReplaceAppointmentAsync(winrt::hstring const& localId, Appointment const& appointment, Rect const& selection);
[Windows.Foundation.Metadata.Overload("ShowReplaceAppointmentAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<string> ShowReplaceAppointmentAsync(string localId, Appointment appointment, Rect selection);
[Windows.Foundation.Metadata.Overload("ShowReplaceAppointmentAsync")]
public IAsyncOperation<string> ShowReplaceAppointmentAsync(string localId, Appointment appointment, Rect selection);
function showReplaceAppointmentAsync(localId, appointment, selection)
Public Function ShowReplaceAppointmentAsync (localId As String, appointment As Appointment, selection As Rect) As IAsyncOperation(Of String)

参数

localId
String

Platform::String

winrt::hstring

要替换的约会的 LocalId

appointment
Appointment

表示要替换现有约会的约会的 对象。

selection
Rect

Rect 是用户选择的矩形区域, (例如,按下按钮) ,操作系统围绕该按钮显示“替换约会 UI”,而不是在该矩形区域内。 例如,如果应用使用按钮显示 Rect,则传递按钮的 Rect ,以便“替换约会”UI 显示在按钮周围,而不是重叠。

返回

IAsyncOperation<String>

IAsyncOperation<Platform::String>

IAsyncOperation<winrt::hstring>

此方法完成后,它将返回一个 String 对象,该对象表示替换了现有约会的约会的 RoamingId

属性

Windows 要求

应用功能
appointmentsSystem

另请参阅

适用于

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

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

public:
 virtual IAsyncOperation<Platform::String ^> ^ ShowReplaceAppointmentAsync(Platform::String ^ localId, Appointment ^ appointment, Rect selection, Placement preferredPlacement, DateTime instanceStartDate) = ShowReplaceAppointmentAsync;
/// [Windows.Foundation.Metadata.Overload("ShowReplaceAppointmentWithPlacementAndDateAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<winrt::hstring> ShowReplaceAppointmentAsync(winrt::hstring const& localId, Appointment const& appointment, Rect const& selection, Placement const& preferredPlacement, DateTime const& instanceStartDate);
/// [Windows.Foundation.Metadata.Overload("ShowReplaceAppointmentWithPlacementAndDateAsync")]
IAsyncOperation<winrt::hstring> ShowReplaceAppointmentAsync(winrt::hstring const& localId, Appointment const& appointment, Rect const& selection, Placement const& preferredPlacement, DateTime const& instanceStartDate);
[Windows.Foundation.Metadata.Overload("ShowReplaceAppointmentWithPlacementAndDateAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<string> ShowReplaceAppointmentAsync(string localId, Appointment appointment, Rect selection, Placement preferredPlacement, System.DateTimeOffset instanceStartDate);
[Windows.Foundation.Metadata.Overload("ShowReplaceAppointmentWithPlacementAndDateAsync")]
public IAsyncOperation<string> ShowReplaceAppointmentAsync(string localId, Appointment appointment, Rect selection, Placement preferredPlacement, System.DateTimeOffset instanceStartDate);
function showReplaceAppointmentAsync(localId, appointment, selection, preferredPlacement, instanceStartDate)
Public Function ShowReplaceAppointmentAsync (localId As String, appointment As Appointment, selection As Rect, preferredPlacement As Placement, instanceStartDate As DateTimeOffset) As IAsyncOperation(Of String)

参数

localId
String

Platform::String

winrt::hstring

要替换的约会的 LocalId

appointment
Appointment

表示要替换现有约会的约会的 对象。

selection
Rect

Rect 是用户选择的矩形区域, (例如,按下按钮) ,操作系统围绕该按钮显示“替换约会 UI”,而不是在该矩形区域内。 例如,如果应用使用按钮显示 Rect,则传递按钮的 Rect ,以便“替换约会”UI 显示在按钮周围,而不是重叠。

preferredPlacement
Placement

描述替换约会 UI 的首选放置位置的 放置

instanceStartDate
DateTime DateTimeOffset

要替换的约会实例的开始日期和时间。

返回

IAsyncOperation<String>

IAsyncOperation<Platform::String>

IAsyncOperation<winrt::hstring>

此方法完成后,它将返回一个 String 对象,该对象表示替换了现有约会的约会的 RoamingId

属性

Windows 要求

应用功能
appointmentsSystem

注解

instanceStartTime 参数必须是实例的原始开始日期。

另请参阅

适用于