Udostępnij za pośrednictwem


AppointmentManager.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)

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:
 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)

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.

For info about how to manage appointments, see Manage appointments.

See also

Applies to

ShowRemoveAppointmentAsync(String, Rect, Placement)

Shows the Appointments provider Remove Appointment UI, to enable the user to remove an appointment.

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)

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

See the remarks section of this overload: ShowRemoveAppointmentAsync.

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:
 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)

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

See the remarks section of this overload: ShowRemoveAppointmentAsync.

See also

Applies to