AppointmentManagerForUser.ShowRemoveAppointmentAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ShowRemoveAppointmentAsync(String, Rect) |
显示约会提供程序“删除约会”UI,使用户能够删除约会。 |
ShowRemoveAppointmentAsync(String, Rect, Placement) |
显示约会提供程序“删除约会”UI,使用户能够删除约会。 |
ShowRemoveAppointmentAsync(String, Rect, Placement, DateTime) |
显示约会提供程序“删除约会”UI,使用户能够删除约会。 |
ShowRemoveAppointmentAsync(String, Rect)
显示约会提供程序“删除约会”UI,使用户能够删除约会。
public:
virtual IAsyncOperation<bool> ^ ShowRemoveAppointmentAsync(Platform::String ^ appointmentId, Rect selection) = ShowRemoveAppointmentAsync;
/// [Windows.Foundation.Metadata.Overload("ShowRemoveAppointmentAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> ShowRemoveAppointmentAsync(winrt::hstring const& appointmentId, Rect const& selection);
[Windows.Foundation.Metadata.Overload("ShowRemoveAppointmentAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> ShowRemoveAppointmentAsync(string appointmentId, Rect selection);
function showRemoveAppointmentAsync(appointmentId, selection)
Public Function ShowRemoveAppointmentAsync (appointmentId As String, selection As Rect) As IAsyncOperation(Of Boolean)
参数
- appointmentId
-
String
Platform::String
winrt::hstring
约会标识符。 这通常是从上一次 ShowAddAppointmentAsync 调用的异步返回值获取的。
- selection
- Rect
Rect 是用户选择的矩形区域, (例如,按下按钮) ,操作系统将围绕该按钮显示“删除约会”UI,而不是在该矩形区域内。 例如,如果应用使用按钮显示 Rect,请传递该按钮的 Rect ,以便“删除约会”UI 显示在按钮周围,而不是将其重叠。
返回
此方法完成后,它将返回一个 布尔 值,该值指示约会提供程序应用是否删除了约会。
- 属性
Windows 要求
应用功能 |
appointmentsSystem
|
注解
调用此方法时,约会提供程序应用显示在应用托管的轻型消除窗格中。
即使已成功删除约会,此方法也可能返回 false。
另请参阅
- ShowRemoveAppointmentAsync(String, Rect, Placement)
- ShowRemoveAppointmentAsync(String, Rect, Placement, DateTime)
适用于
ShowRemoveAppointmentAsync(String, Rect, Placement)
显示约会提供程序“删除约会”UI,使用户能够删除约会。
public:
virtual IAsyncOperation<bool> ^ ShowRemoveAppointmentAsync(Platform::String ^ appointmentId, Rect selection, Placement preferredPlacement) = ShowRemoveAppointmentAsync;
/// [Windows.Foundation.Metadata.Overload("ShowRemoveAppointmentWithPlacementAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> ShowRemoveAppointmentAsync(winrt::hstring const& appointmentId, Rect const& selection, Placement const& preferredPlacement);
[Windows.Foundation.Metadata.Overload("ShowRemoveAppointmentWithPlacementAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> ShowRemoveAppointmentAsync(string appointmentId, Rect selection, Placement preferredPlacement);
function showRemoveAppointmentAsync(appointmentId, selection, preferredPlacement)
Public Function ShowRemoveAppointmentAsync (appointmentId As String, selection As Rect, preferredPlacement As Placement) As IAsyncOperation(Of Boolean)
参数
- appointmentId
-
String
Platform::String
winrt::hstring
约会标识符。 这通常是从上一次 ShowAddAppointmentAsync 调用的异步返回值获取的。
- selection
- Rect
Rect 是用户选择的矩形区域, (例如,按下按钮) ,操作系统将围绕该按钮显示“删除约会”UI,而不是在该矩形区域内。 例如,如果应用使用按钮显示 Rect,请传递该按钮的 Rect ,以便“删除约会”UI 显示在按钮周围,而不是将其重叠。
返回
此方法完成后,它将返回一个 布尔 值,该值指示约会提供程序应用是否删除了约会。
- 属性
Windows 要求
应用功能 |
appointmentsSystem
|
注解
调用此方法时,约会提供程序应用显示在应用托管的轻型消除窗格中。
即使已成功删除约会,此方法也可能返回 false。
另请参阅
- ShowRemoveAppointmentAsync(String, Rect)
- ShowRemoveAppointmentAsync(String, Rect, Placement, DateTime)
适用于
ShowRemoveAppointmentAsync(String, Rect, Placement, DateTime)
显示约会提供程序“删除约会”UI,使用户能够删除约会。
public:
virtual IAsyncOperation<bool> ^ ShowRemoveAppointmentAsync(Platform::String ^ appointmentId, Rect selection, Placement preferredPlacement, DateTime instanceStartDate) = ShowRemoveAppointmentAsync;
/// [Windows.Foundation.Metadata.Overload("ShowRemoveAppointmentWithPlacementAndDateAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> ShowRemoveAppointmentAsync(winrt::hstring const& appointmentId, Rect const& selection, Placement const& preferredPlacement, DateTime const& instanceStartDate);
[Windows.Foundation.Metadata.Overload("ShowRemoveAppointmentWithPlacementAndDateAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> ShowRemoveAppointmentAsync(string appointmentId, Rect selection, Placement preferredPlacement, System.DateTimeOffset instanceStartDate);
function showRemoveAppointmentAsync(appointmentId, selection, preferredPlacement, instanceStartDate)
Public Function ShowRemoveAppointmentAsync (appointmentId As String, selection As Rect, preferredPlacement As Placement, instanceStartDate As DateTimeOffset) As IAsyncOperation(Of Boolean)
参数
- appointmentId
-
String
Platform::String
winrt::hstring
约会标识符。 这通常是从上一次 ShowAddAppointmentAsync 调用的异步返回值获取的。
- selection
- Rect
Rect 是用户选择的矩形区域, (例如,按下按钮) ,操作系统将围绕该按钮显示“删除约会”UI,而不是在该矩形区域内。 例如,如果应用使用按钮显示 Rect,请传递该按钮的 Rect ,以便“删除约会”UI 显示在按钮周围,而不是将其重叠。
- instanceStartDate
- DateTime DateTimeOffset
要删除的约会实例的开始日期和时间。
返回
此方法完成后,它将返回一个 布尔 值,该值指示约会提供程序应用是否删除了约会。
- 属性
Windows 要求
应用功能 |
appointmentsSystem
|
注解
调用此方法时,约会提供程序应用显示在应用托管的轻型消除窗格中。
即使已成功删除约会,此方法也可能返回 false。