AppointmentManager.ShowReplaceAppointmentAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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:
static IAsyncOperation<Platform::String ^> ^ ShowReplaceAppointmentAsync(Platform::String ^ appointmentId, Appointment ^ appointment, Rect selection);
/// [Windows.Foundation.Metadata.Overload("ShowReplaceAppointmentAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
static IAsyncOperation<winrt::hstring> ShowReplaceAppointmentAsync(winrt::hstring const& appointmentId, Appointment const& appointment, Rect const& selection);
[Windows.Foundation.Metadata.Overload("ShowReplaceAppointmentAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<string> ShowReplaceAppointmentAsync(string appointmentId, Appointment appointment, Rect selection);
function showReplaceAppointmentAsync(appointmentId, appointment, selection)
Public Shared 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
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
- ShowReplaceAppointmentAsync(String, Appointment, Rect, Placement)
- ShowReplaceAppointmentAsync(String, Appointment, Rect, Placement, DateTime)
Applies to
ShowReplaceAppointmentAsync(String, Appointment, Rect, Placement)
Shows the Appointments provider Replace Appointment UI, to enable the user to replace an appointment.
public:
static IAsyncOperation<Platform::String ^> ^ ShowReplaceAppointmentAsync(Platform::String ^ appointmentId, Appointment ^ appointment, Rect selection, Placement preferredPlacement);
/// [Windows.Foundation.Metadata.Overload("ShowReplaceAppointmentWithPlacementAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
static 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 static IAsyncOperation<string> ShowReplaceAppointmentAsync(string appointmentId, Appointment appointment, Rect selection, Placement preferredPlacement);
function showReplaceAppointmentAsync(appointmentId, appointment, selection, preferredPlacement)
Public Shared 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
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
- ShowReplaceAppointmentAsync(String, Appointment, Rect)
- ShowReplaceAppointmentAsync(String, Appointment, Rect, Placement, DateTime)
Applies to
ShowReplaceAppointmentAsync(String, Appointment, Rect, Placement, DateTime)
Shows the Appointments provider Replace Appointment UI, to enable the user to replace an appointment.
public:
static IAsyncOperation<Platform::String ^> ^ ShowReplaceAppointmentAsync(Platform::String ^ appointmentId, Appointment ^ appointment, Rect selection, Placement preferredPlacement, DateTime instanceStartDate);
/// [Windows.Foundation.Metadata.Overload("ShowReplaceAppointmentWithPlacementAndDateAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
static 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 static IAsyncOperation<string> ShowReplaceAppointmentAsync(string appointmentId, Appointment appointment, Rect selection, Placement preferredPlacement, System.DateTimeOffset instanceStartDate);
function showReplaceAppointmentAsync(appointmentId, appointment, selection, preferredPlacement, instanceStartDate)
Public Shared 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
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
- ShowReplaceAppointmentAsync(String, Appointment, Rect)
- ShowReplaceAppointmentAsync(String, Appointment, Rect, Placement)