AppointmentManager.ShowRemoveAppointmentAsync(String, Rect) | showRemoveAppointmentAsync(String, Rect) method

Applies to Windows and Windows Phone

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

Syntax


Windows.ApplicationModel.Appointments.AppointmentManager.showRemoveAppointmentAsync(appointmentId, selection).done( /* Your success and error handlers */ );

Parameters

appointmentId

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The appointment identifier. This is typically obtained from the async return value of a previous ShowAddAppointmentAsync call.

selection

Type: 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.

Return value

Type: IAsyncOperation<Boolean>

When this method completes, it returns a Boolean value that indicates whether the Appointment provider app removed the appointment.

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.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.ApplicationModel.Appointments
Windows::ApplicationModel::Appointments [C++]

Metadata

Windows.winmd

See also

AppointmentManager
ShowRemoveAppointmentAsync(String, Rect, Placement)
ShowRemoveAppointmentAsync(String, Rect, Placement, DateTime)

 

 

Show:
© 2014 Microsoft. All rights reserved.