Share via


AddAppointmentOperation Class

Definition

Represents the operation object associated with adding a new appointment. Appointments provider apps use this info to perform the operation.

public ref class AddAppointmentOperation sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class AddAppointmentOperation final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class AddAppointmentOperation
Public NotInheritable Class AddAppointmentOperation
Inheritance
Object Platform::Object IInspectable AddAppointmentOperation
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)
App capabilities
appointmentsSystem

Remarks

This class is used as the value of the AddAppointmentOperation event data property from the AppointmentsProviderAddAppointmentActivatedEventArgs event data class. An appointments provider app typically goes through a series of casts and property checks starting from the IActivatedEventArgs event data of a general activation event handler. If the activation indicates that it's an AppointmentsProvider app activation kind with Add as the verb, then it's appropriate to cast event data to AppointmentsProviderAddAppointmentActivatedEventArgs.

Providers call methods of AddAppointmentOperation to indicate whether the operation was completed, was canceled, or when a provider error prevented the operation from being completed. Calling these methods influences the async results that the activating app gets back from its ShowAddAppointmentAsync call. All of the reporting methods (ReportCompleted, ReportCanceled, ReportError) dismiss the Add Appointment UI.

Properties

AppointmentInformation

Gets the Appointment info from the activation request.

SourcePackageFamilyName

Gets the package family name of the app that is requesting the operation.

Methods

DismissUI()

Dismisses the UI for the operation that adds a new appointment.

ReportCanceled()

Call this method to inform the activating app that the operation was canceled by the user.

ReportCompleted(String)

Call this method to inform the activating app that the operation was completed successfully. Provide a unique appointment ID as the itemID parameter.

ReportError(String)

Informs the activating app that the operation couldn't be completed because of a provider error.

Applies to