AppointmentManager.ShowAddAppointmentAsync メソッド

定義

オーバーロード

ShowAddAppointmentAsync(Appointment, Rect)

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

ShowAddAppointmentAsync(Appointment, Rect, Placement)

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

ShowAddAppointmentAsync(Appointment, Rect)

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

public:
 static IAsyncOperation<Platform::String ^> ^ ShowAddAppointmentAsync(Appointment ^ appointment, Rect selection);
/// [Windows.Foundation.Metadata.Overload("ShowAddAppointmentAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<winrt::hstring> ShowAddAppointmentAsync(Appointment const& appointment, Rect const& selection);
[Windows.Foundation.Metadata.Overload("ShowAddAppointmentAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<string> ShowAddAppointmentAsync(Appointment appointment, Rect selection);
function showAddAppointmentAsync(appointment, selection)
Public Shared 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>

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

属性

Windows の要件

アプリの機能
appointmentsSystem

注釈

このメソッドを呼び出すと、予定プロバイダー アプリが、アプリによってホストされているライト 無視ウィンドウに表示されます。

Windows Phone、このメソッドは ShowEditNewAppointmentAsync と同じように動作し、ユーザーが [予定の追加] UI のフィールドを編集できます。

予定を管理する方法については、「予定の 管理」を参照してください。

こちらもご覧ください

適用対象

ShowAddAppointmentAsync(Appointment, Rect, Placement)

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

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

パラメーター

appointment
Appointment

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

selection
Rect

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

preferredPlacement
Placement

予定の追加 UI の推奨される配置を表す配置。

戻り値

IAsyncOperation<String>

IAsyncOperation<Platform::String>

IAsyncOperation<winrt::hstring>

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

属性

Windows の要件

アプリの機能
appointmentsSystem

注釈

次のオーバーロードの解説を参照してください: ShowAddAppointmentAsync

こちらもご覧ください

適用対象