Share via


AppointmentStore.ShowReplaceAppointmentAsync メソッド

定義

オーバーロード

ShowReplaceAppointmentAsync(String, Appointment, Rect)

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

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

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

ShowReplaceAppointmentAsync(String, Appointment, Rect)

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

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

パラメーター

localId
String

Platform::String

winrt::hstring

置き換える予定の LocalId

appointment
Appointment

既存の予定を置き換える予定を表す オブジェクト。

selection
Rect

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

戻り値

IAsyncOperation<String>

IAsyncOperation<Platform::String>

IAsyncOperation<winrt::hstring>

このメソッドが完了すると、既存の予定を置き換えた予定の RoamingId を表す String オブジェクトが返されます。

属性

Windows の要件

アプリの機能
appointmentsSystem

こちらもご覧ください

適用対象

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

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

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

パラメーター

localId
String

Platform::String

winrt::hstring

置き換える予定の LocalId

appointment
Appointment

既存の予定を置き換える予定を表す オブジェクト。

selection
Rect

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

preferredPlacement
Placement

予定の置換 UI の推奨される配置を記述する配置。

instanceStartDate
DateTime DateTimeOffset

置換する予定インスタンスの開始日時。

戻り値

IAsyncOperation<String>

IAsyncOperation<Platform::String>

IAsyncOperation<winrt::hstring>

このメソッドが完了すると、既存の予定を置き換えた予定の RoamingId を表す String オブジェクトが返されます。

属性

Windows の要件

アプリの機能
appointmentsSystem

注釈

instanceStartTime パラメーターは、インスタンスの元の開始日である必要があります。

こちらもご覧ください

適用対象