ShowReplaceAppointmentAsync(String, Appointment, Rect) | showReplaceAppointmentAsync(String, Appointment, Rect) method

AppointmentManager.ShowReplaceAppointmentAsync(String, Appointment, Rect) | showReplaceAppointmentAsync(String, Appointment, Rect) method

Shows the Appointments provider Replace Appointment UI, to enable the user to replace an appointment.

Syntax


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

Parameters

appointmentId

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

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

appointment

Type: Appointment

The object representing the information for the appointment to replace the current appointment.

selection

Type: Rect

The Rect is the rectangular area of user selection (for example, pressing a button), around which the operating system displays the Replace 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 Replace Appointment UI displays around the button, not overlapping it.

Return value

Type: IAsyncOperation<String>

When this method completes, it returns a String object that represents the appointment. This serves as an appointment identifier for future reference when updating or removing. If the appointment identifier returned is an empty string, the appointment was not replaced in the Appointments provider app.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

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
ShowReplaceAppointmentAsync(String, Appointment, Rect, Placement)
ShowReplaceAppointmentAsync(String, Appointment, Rect, Placement, DateTime)

 

 

Show:
© 2016 Microsoft