AppointmentManagerForUser.ShowReplaceAppointmentAsync 方法

定义

重载

ShowReplaceAppointmentAsync(String, Appointment, Rect)

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

ShowReplaceAppointmentAsync(String, Appointment, Rect, Placement)

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

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

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

ShowReplaceAppointmentAsync(String, Appointment, Rect)

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

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

参数

appointmentId
String

Platform::String

winrt::hstring

当前约会的约会标识符。 这通常从以前的 ShowAddAppointmentAsync 或 ShowReplaceAppointmentAsync 调用的异步返回值获取。

appointment
Appointment

表示要替换当前约会的约会信息的对象。

selection
Rect

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

返回

IAsyncOperation<String>

IAsyncOperation<Platform::String>

IAsyncOperation<winrt::hstring>

此方法完成后,它将返回一个表示约会的 String 对象。 这用作约会标识符,供将来更新或删除时参考。 如果返回的约会标识符是空字符串,则约会提供程序应用中不会替换该约会。

属性

Windows 要求

应用功能
appointmentsSystem

另请参阅

适用于

ShowReplaceAppointmentAsync(String, Appointment, Rect, Placement)

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

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

参数

appointmentId
String

Platform::String

winrt::hstring

当前约会的约会标识符。 这通常从以前的 ShowAddAppointmentAsyncShowReplaceAppointmentAsync 调用的异步返回值获取。

appointment
Appointment

表示要替换当前约会的约会信息的对象。

selection
Rect

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

preferredPlacement
Placement

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

返回

IAsyncOperation<String>

IAsyncOperation<Platform::String>

IAsyncOperation<winrt::hstring>

此方法完成后,它将返回一个表示约会的 String 对象。 这用作约会标识符,供将来更新或删除时参考。 如果返回的约会标识符是空字符串,则约会提供程序应用中不会替换该约会。

属性

Windows 要求

应用功能
appointmentsSystem

另请参阅

适用于

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

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

public:
 virtual IAsyncOperation<Platform::String ^> ^ ShowReplaceAppointmentAsync(Platform::String ^ appointmentId, 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& appointmentId, 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 appointmentId, Appointment appointment, Rect selection, Placement preferredPlacement, System.DateTimeOffset instanceStartDate);
function showReplaceAppointmentAsync(appointmentId, appointment, selection, preferredPlacement, instanceStartDate)
Public Function ShowReplaceAppointmentAsync (appointmentId As String, appointment As Appointment, selection As Rect, preferredPlacement As Placement, instanceStartDate As DateTimeOffset) As IAsyncOperation(Of String)

参数

appointmentId
String

Platform::String

winrt::hstring

当前约会的约会标识符。 这通常从以前的 ShowAddAppointmentAsyncShowReplaceAppointmentAsync 调用的异步返回值获取。

appointment
Appointment

表示要替换当前约会的约会信息的对象。

selection
Rect

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

preferredPlacement
Placement

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

instanceStartDate
DateTime DateTimeOffset

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

返回

IAsyncOperation<String>

IAsyncOperation<Platform::String>

IAsyncOperation<winrt::hstring>

此方法完成后,它将返回一个表示约会的 String 对象。 这用作约会标识符,供将来更新或删除时参考。 如果返回的约会标识符是空字符串,则约会提供程序应用中不会替换该约会。

属性

Windows 要求

应用功能
appointmentsSystem

另请参阅

适用于