AppointmentManager.ShowRemoveAppointmentAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ShowRemoveAppointmentAsync(String, Rect) |
显示约会提供程序删除约会 UI,使用户能够删除约会。 |
ShowRemoveAppointmentAsync(String, Rect, Placement) |
显示约会提供程序删除约会 UI,使用户能够删除约会。 |
ShowRemoveAppointmentAsync(String, Rect, Placement, DateTime) |
显示约会提供程序删除约会 UI,使用户能够删除约会。 |
ShowRemoveAppointmentAsync(String, Rect)
显示约会提供程序删除约会 UI,使用户能够删除约会。
public:
static IAsyncOperation<bool> ^ ShowRemoveAppointmentAsync(Platform::String ^ appointmentId, Rect selection);
/// [Windows.Foundation.Metadata.Overload("ShowRemoveAppointmentAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
static IAsyncOperation<bool> ShowRemoveAppointmentAsync(winrt::hstring const& appointmentId, Rect const& selection);
[Windows.Foundation.Metadata.Overload("ShowRemoveAppointmentAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<bool> ShowRemoveAppointmentAsync(string appointmentId, Rect selection);
function showRemoveAppointmentAsync(appointmentId, selection)
Public Shared 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:
static IAsyncOperation<bool> ^ ShowRemoveAppointmentAsync(Platform::String ^ appointmentId, Rect selection, Placement preferredPlacement);
/// [Windows.Foundation.Metadata.Overload("ShowRemoveAppointmentWithPlacementAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
static IAsyncOperation<bool> ShowRemoveAppointmentAsync(winrt::hstring const& appointmentId, Rect const& selection, Placement const& preferredPlacement);
[Windows.Foundation.Metadata.Overload("ShowRemoveAppointmentWithPlacementAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<bool> ShowRemoveAppointmentAsync(string appointmentId, Rect selection, Placement preferredPlacement);
function showRemoveAppointmentAsync(appointmentId, selection, preferredPlacement)
Public Shared 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
|
注解
请参阅此重载的备注部分: ShowRemoveAppointmentAsync。
另请参阅
- ShowRemoveAppointmentAsync(String, Rect)
- ShowRemoveAppointmentAsync(String, Rect, Placement, DateTime)
适用于
ShowRemoveAppointmentAsync(String, Rect, Placement, DateTime)
显示约会提供程序删除约会 UI,使用户能够删除约会。
public:
static IAsyncOperation<bool> ^ ShowRemoveAppointmentAsync(Platform::String ^ appointmentId, Rect selection, Placement preferredPlacement, DateTime instanceStartDate);
/// [Windows.Foundation.Metadata.Overload("ShowRemoveAppointmentWithPlacementAndDateAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
static 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 static IAsyncOperation<bool> ShowRemoveAppointmentAsync(string appointmentId, Rect selection, Placement preferredPlacement, System.DateTimeOffset instanceStartDate);
function showRemoveAppointmentAsync(appointmentId, selection, preferredPlacement, instanceStartDate)
Public Shared 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
|
注解
请参阅此重载的备注部分: ShowRemoveAppointmentAsync。