Dela via


AppointmentManagerForUser.ShowReplaceAppointmentAsync Method

Definition

Overloads

ShowReplaceAppointmentAsync(String, Appointment, Rect)

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

ShowReplaceAppointmentAsync(String, Appointment, Rect, Placement)

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

ShowReplaceAppointmentAsync(String, Appointment, Rect, Placement, DateTime)

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

ShowReplaceAppointmentAsync(String, Appointment, Rect)

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

public:
 virtual IAsyncOperation<Platform::String ^> ^ ShowReplaceAppointmentAsync(Platform::String ^ appointmentId, Appointment ^ appointment, Rect selection) = ShowReplaceAppointmentAsync;
/// [Windows.Foundation.Metadata.Overload("ShowReplaceAppointmentAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<winrt::hstring> ShowReplaceAppointmentAsync(winrt::hstring const& appointmentId, Appointment const& appointment, Rect const& selection);
[Windows.Foundation.Metadata.Overload("ShowReplaceAppointmentAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<string> ShowReplaceAppointmentAsync(string appointmentId, Appointment appointment, Rect selection);
function showReplaceAppointmentAsync(appointmentId, appointment, selection)
Public Function ShowReplaceAppointmentAsync (appointmentId As String, appointment As Appointment, selection As Rect) As IAsyncOperation(Of String)

Parameters

appointmentId
String

Platform::String

winrt::hstring

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

appointment
Appointment

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

selection
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.

Returns

IAsyncOperation<String>

IAsyncOperation<Platform::String>

IAsyncOperation<winrt::hstring>

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.

Attributes

Windows requirements

App capabilities
appointmentsSystem

See also

Applies to

ShowReplaceAppointmentAsync(String, Appointment, Rect, Placement)

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

public:
 virtual IAsyncOperation<Platform::String ^> ^ ShowReplaceAppointmentAsync(Platform::String ^ appointmentId, Appointment ^ appointment, Rect selection, Placement preferredPlacement) = ShowReplaceAppointmentAsync;
/// [Windows.Foundation.Metadata.Overload("ShowReplaceAppointmentWithPlacementAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<winrt::hstring> ShowReplaceAppointmentAsync(winrt::hstring const& appointmentId, Appointment const& appointment, Rect const& selection, Placement const& preferredPlacement);
[Windows.Foundation.Metadata.Overload("ShowReplaceAppointmentWithPlacementAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<string> ShowReplaceAppointmentAsync(string appointmentId, Appointment appointment, Rect selection, Placement preferredPlacement);
function showReplaceAppointmentAsync(appointmentId, appointment, selection, preferredPlacement)
Public Function ShowReplaceAppointmentAsync (appointmentId As String, appointment As Appointment, selection As Rect, preferredPlacement As Placement) As IAsyncOperation(Of String)

Parameters

appointmentId
String

Platform::String

winrt::hstring

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

appointment
Appointment

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

selection
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.

preferredPlacement
Placement

The Placement that describes the preferred placement of the Replace Appointment UI.

Returns

IAsyncOperation<String>

IAsyncOperation<Platform::String>

IAsyncOperation<winrt::hstring>

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.

Attributes

Windows requirements

App capabilities
appointmentsSystem

See also

Applies to

ShowReplaceAppointmentAsync(String, Appointment, Rect, Placement, DateTime)

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

public:
 virtual IAsyncOperation<Platform::String ^> ^ ShowReplaceAppointmentAsync(Platform::String ^ appointmentId, Appointment ^ appointment, Rect selection, Placement preferredPlacement, DateTime instanceStartDate) = ShowReplaceAppointmentAsync;
/// [Windows.Foundation.Metadata.Overload("ShowReplaceAppointmentWithPlacementAndDateAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<winrt::hstring> ShowReplaceAppointmentAsync(winrt::hstring const& appointmentId, Appointment const& appointment, Rect const& selection, Placement const& preferredPlacement, DateTime const& instanceStartDate);
[Windows.Foundation.Metadata.Overload("ShowReplaceAppointmentWithPlacementAndDateAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<string> ShowReplaceAppointmentAsync(string appointmentId, Appointment appointment, Rect selection, Placement preferredPlacement, System.DateTimeOffset instanceStartDate);
function showReplaceAppointmentAsync(appointmentId, appointment, selection, preferredPlacement, instanceStartDate)
Public Function ShowReplaceAppointmentAsync (appointmentId As String, appointment As Appointment, selection As Rect, preferredPlacement As Placement, instanceStartDate As DateTimeOffset) As IAsyncOperation(Of String)

Parameters

appointmentId
String

Platform::String

winrt::hstring

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

appointment
Appointment

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

selection
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.

preferredPlacement
Placement

The Placement that describes the preferred placement of the Replace Appointment UI.

instanceStartDate
DateTime DateTimeOffset

The start date and time of the appointment instance to replace.

Returns

IAsyncOperation<String>

IAsyncOperation<Platform::String>

IAsyncOperation<winrt::hstring>

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.

Attributes

Windows requirements

App capabilities
appointmentsSystem

See also

Applies to