共用方式為


AppointmentManagerForUser.ShowReplaceAppointmentAsync 方法

定義

多載

ShowReplaceAppointmentAsync(String, Appointment, Rect)

顯示 [約會提供者取代約會 UI],讓使用者能夠取代約會。

ShowReplaceAppointmentAsync(String, Appointment, Rect, Placement)

顯示 [約會提供者取代約會 UI],讓使用者能夠取代約會。

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

顯示 [約會提供者取代約會 UI],讓使用者能夠取代約會。

ShowReplaceAppointmentAsync(String, Appointment, Rect)

顯示 [約會提供者取代約會 UI],讓使用者能夠取代約會。

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

參數

appointmentId
String

Platform::String

winrt::hstring

目前約會的約會識別碼。 這通常是從先前 ShowAddAppointmentAsync 或 ShowReplaceAppointmentAsync 呼叫的非同步傳回值取得。

appointment
Appointment

物件,表示要取代目前約會之約會的資訊。

selection
Rect

Rect是使用者選取範圍的矩形區域 (例如,按下按鈕) ,作業系統會在其中顯示 [取代約會 UI],而不是在該矩形區域內。 例如,如果應用程式使用按鈕來顯示 Rect,請傳遞按鈕的 Rect ,讓 [取代約會] UI 在按鈕周圍顯示,而不會重迭。

傳回

IAsyncOperation<String>

IAsyncOperation<Platform::String>

IAsyncOperation<winrt::hstring>

當此方法完成時,它會傳回代表約會的 String 物件。 這可作為更新或移除時未來參考的約會識別碼。 如果傳回的約會識別碼是空字串,則約會未在約會提供者應用程式中取代。

屬性

Windows 需求

應用程式功能
appointmentsSystem

另請參閱

適用於

ShowReplaceAppointmentAsync(String, Appointment, Rect, Placement)

顯示 [約會提供者取代約會 UI],讓使用者能夠取代約會。

public:
 virtual IAsyncOperation<Platform::String ^> ^ ShowReplaceAppointmentAsync(Platform::String ^ appointmentId, Appointment ^ appointment, Rect selection, Placement preferredPlacement) = ShowReplaceAppointmentAsync;
/// [Windows.Foundation.Metadata.Overload("ShowReplaceAppointmentWithPlacementAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
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 IAsyncOperation<string> ShowReplaceAppointmentAsync(string appointmentId, Appointment appointment, Rect selection, Placement preferredPlacement);
function showReplaceAppointmentAsync(appointmentId, appointment, selection, preferredPlacement)
Public Function ShowReplaceAppointmentAsync (appointmentId As String, appointment As Appointment, selection As Rect, preferredPlacement As Placement) As IAsyncOperation(Of String)

參數

appointmentId
String

Platform::String

winrt::hstring

目前約會的約會識別碼。 這通常是從先前 ShowAddAppointmentAsyncShowReplaceAppointmentAsync 呼叫的非同步傳回值取得。

appointment
Appointment

物件,表示要取代目前約會之約會的資訊。

selection
Rect

Rect是使用者選取範圍的矩形區域 (例如,按下按鈕) ,作業系統會在其中顯示 [取代約會 UI],而不是在該矩形區域內。 例如,如果應用程式使用按鈕來顯示 Rect,請傳遞按鈕的 Rect ,讓 [取代約會] UI 在按鈕周圍顯示,而不會重迭。

preferredPlacement
Placement

描述取代約會 UI 慣用位置的 Placement

傳回

IAsyncOperation<String>

IAsyncOperation<Platform::String>

IAsyncOperation<winrt::hstring>

當此方法完成時,它會傳回代表約會的 String 物件。 這可作為更新或移除時未來參考的約會識別碼。 如果傳回的約會識別碼是空字串,則約會未在約會提供者應用程式中取代。

屬性

Windows 需求

應用程式功能
appointmentsSystem

另請參閱

適用於

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

顯示 [約會提供者取代約會 UI],讓使用者能夠取代約會。

public:
 virtual IAsyncOperation<Platform::String ^> ^ ShowReplaceAppointmentAsync(Platform::String ^ appointmentId, 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& appointmentId, 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 appointmentId, Appointment appointment, Rect selection, Placement preferredPlacement, System.DateTimeOffset instanceStartDate);
function showReplaceAppointmentAsync(appointmentId, appointment, selection, preferredPlacement, instanceStartDate)
Public Function ShowReplaceAppointmentAsync (appointmentId As String, appointment As Appointment, selection As Rect, preferredPlacement As Placement, instanceStartDate As DateTimeOffset) As IAsyncOperation(Of String)

參數

appointmentId
String

Platform::String

winrt::hstring

目前約會的約會識別碼。 這通常是從先前 ShowAddAppointmentAsyncShowReplaceAppointmentAsync 呼叫的非同步傳回值取得。

appointment
Appointment

物件,表示要取代目前約會之約會的資訊。

selection
Rect

Rect是使用者選取範圍的矩形區域 (例如,按下按鈕) ,作業系統會在其中顯示 [取代約會 UI],而不是在該矩形區域內。 例如,如果應用程式使用按鈕來顯示 Rect,請傳遞按鈕的 Rect ,讓 [取代約會] UI 在按鈕周圍顯示,而不會重迭。

preferredPlacement
Placement

描述取代約會 UI 慣用位置的 Placement

instanceStartDate
DateTime DateTimeOffset

要取代之約會實例的開始日期和時間。

傳回

IAsyncOperation<String>

IAsyncOperation<Platform::String>

IAsyncOperation<winrt::hstring>

當此方法完成時,它會傳回代表約會的 String 物件。 這可作為更新或移除時未來參考的約會識別碼。 如果傳回的約會識別碼是空字串,則約會未在約會提供者應用程式中取代。

屬性

Windows 需求

應用程式功能
appointmentsSystem

另請參閱

適用於