Share via


AppointmentStore.ShowAddAppointmentAsync(Appointment, Rect) メソッド

定義

予定プロバイダーの [予定の追加] UI を表示して、ユーザーが予定を追加できるようにします。

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

パラメーター

appointment
Appointment

追加する予定の情報を表す オブジェクト。

selection
Rect

Rect は、ユーザーが選択した四角形の領域 (ボタンを押すなど) であり、オペレーティング システムには、その四角形の領域内ではなく、予定の追加 UI が表示されます。 たとえば、アプリでボタンを使用して Rect を表示する場合は、ボタンの Rect を渡して、[予定の追加] UI がボタンの周囲に表示され、重複しないようにします。

戻り値

IAsyncOperation<String>

IAsyncOperation<Platform::String>

IAsyncOperation<winrt::hstring>

このメソッドが完了すると、予定の RoamingId を表す String オブジェクトが返されます。 返される予定識別子が空の文字列の場合、予定は Appointments プロバイダー アプリに追加されませんでした。

属性

Windows の要件

アプリの機能
appointmentsSystem

注釈

Windows Phone 8.x アプリの場合、このメソッドは ShowEditNewAppointmentAsync と同じように動作します。つまり、[予定の追加] UI のフィールドはユーザーが編集できます。

適用対象