Dela via


AppointmentStore.ShowRemoveAppointmentAsync Method

Definition

Overloads

ShowRemoveAppointmentAsync(String, Rect)

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 ^ localId, Rect selection) = ShowRemoveAppointmentAsync;
/// [Windows.Foundation.Metadata.Overload("ShowRemoveAppointmentAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> ShowRemoveAppointmentAsync(winrt::hstring const& localId, Rect const& selection);
[Windows.Foundation.Metadata.Overload("ShowRemoveAppointmentAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> ShowRemoveAppointmentAsync(string localId, Rect selection);
function showRemoveAppointmentAsync(localId, selection)
Public Function ShowRemoveAppointmentAsync (localId As String, selection As Rect) As IAsyncOperation(Of Boolean)

Parameters

localId
String

Platform::String

winrt::hstring

The LocalId of the appointment to be removed.

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

See also

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 ^ localId, Rect selection, Placement preferredPlacement, DateTime instanceStartDate) = ShowRemoveAppointmentAsync;
/// [Windows.Foundation.Metadata.Overload("ShowRemoveAppointmentWithPlacementAndDateAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> ShowRemoveAppointmentAsync(winrt::hstring const& localId, Rect const& selection, Placement const& preferredPlacement, DateTime const& instanceStartDate);
[Windows.Foundation.Metadata.Overload("ShowRemoveAppointmentWithPlacementAndDateAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> ShowRemoveAppointmentAsync(string localId, Rect selection, Placement preferredPlacement, System.DateTimeOffset instanceStartDate);
function showRemoveAppointmentAsync(localId, selection, preferredPlacement, instanceStartDate)
Public Function ShowRemoveAppointmentAsync (localId As String, selection As Rect, preferredPlacement As Placement, instanceStartDate As DateTimeOffset) As IAsyncOperation(Of Boolean)

Parameters

localId
String

Platform::String

winrt::hstring

The LocalId of the appointment to be removed.

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. This parameter must be the original start date of the instance.

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

See also

Applies to