AppointmentManagerForUser.ShowRemoveAppointmentAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ShowRemoveAppointmentAsync(String, Rect) |
Shows the Appointments provider Remove Appointment UI, to enable the user to remove an appointment. |
ShowRemoveAppointmentAsync(String, Rect, Placement) |
Shows the Appointments provider Remove Appointment UI, to enable the user to remove an appointment. |
ShowRemoveAppointmentAsync(String, Rect, Placement, DateTime) |
Shows the Appointments provider Remove Appointment UI, to enable the user to remove an appointment. |
ShowRemoveAppointmentAsync(String, Rect)
Shows the Appointments provider Remove Appointment UI, to enable the user to remove an appointment.
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)
Parameters
- appointmentId
-
String
Platform::String
winrt::hstring
The appointment identifier. This is typically obtained from the async return value of a previous ShowAddAppointmentAsync call.
- selection
- Rect
The Rect is the rectangular area of user selection (for example, pressing a button), around which the operating system displays the Remove Appointment UI, not within that rectangular area. For example, if an app uses a button to show the Rect, pass the Rect of the button so the Remove Appointment UI displays around the button, not overlapping it.
Returns
When this method completes, it returns a Boolean value that indicates whether the Appointment provider app removed the appointment.
- Attributes
Windows requirements
App capabilities |
appointmentsSystem
|
Remarks
When you call this method, the Appointment provider app displays in a light-dismiss pane that is hosted by your app.
This method may return false, even when the appointment was successfully removed.
See also
- ShowRemoveAppointmentAsync(String, Rect, Placement)
- ShowRemoveAppointmentAsync(String, Rect, Placement, DateTime)
Applies to
ShowRemoveAppointmentAsync(String, Rect, Placement)
Shows the Appointments provider Remove Appointment UI, to enable the user to remove an appointment.
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)
Parameters
- appointmentId
-
String
Platform::String
winrt::hstring
The appointment identifier. This is typically obtained from the async return value of a previous ShowAddAppointmentAsync call.
- selection
- Rect
The Rect is the rectangular area of user selection (for example, pressing a button), around which the operating system displays the Remove Appointment UI, not within that rectangular area. For example, if an app uses a button to show the Rect, pass the Rect of the button so the Remove Appointment UI displays around the button, not overlapping it.
- preferredPlacement
- Placement
The Placement that describes the preferred placement of the Remove Appointment UI.
Returns
When this method completes, it returns a Boolean value that indicates whether the Appointment provider app removed the appointment.
- Attributes
Windows requirements
App capabilities |
appointmentsSystem
|
Remarks
When you call this method, the Appointment provider app displays in a light-dismiss pane that is hosted by your app.
This method may return false, even when the appointment was successfully removed.
See also
- ShowRemoveAppointmentAsync(String, Rect)
- ShowRemoveAppointmentAsync(String, Rect, Placement, DateTime)
Applies to
ShowRemoveAppointmentAsync(String, Rect, Placement, DateTime)
Shows the Appointments provider Remove Appointment UI, to enable the user to remove an appointment.
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)
Parameters
- appointmentId
-
String
Platform::String
winrt::hstring
The appointment identifier. This is typically obtained from the async return value of a previous ShowAddAppointmentAsync call.
- selection
- Rect
The Rect is the rectangular area of user selection (for example, pressing a button), around which the operating system displays the Remove Appointment UI, not within that rectangular area. For example, if an app uses a button to show the Rect, pass the Rect of the button so the Remove Appointment UI displays around the button, not overlapping it.
- preferredPlacement
- Placement
The Placement that describes the preferred placement of the Remove Appointment UI.
- instanceStartDate
- DateTime DateTimeOffset
The start date and time of the appointment instance to remove.
Returns
When this method completes, it returns a Boolean value that indicates whether the Appointment provider app removed the appointment.
- Attributes
Windows requirements
App capabilities |
appointmentsSystem
|
Remarks
When you call this method, the Appointment provider app displays in a light-dismiss pane that is hosted by your app.
This method may return false, even when the appointment was successfully removed.