AppointmentStore.ShowReplaceAppointmentAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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)
參數
- appointment
- Appointment
物件,表示取代現有約會的約會。
- selection
- Rect
Rect是使用者選取的矩形區域 (例如,按下按鈕) ,作業系統會顯示取代約會 UI,而不是在該矩形區域內。 例如,如果應用程式使用按鈕來顯示 Rect,請傳遞按鈕的 Rect ,讓取代約會 UI 在按鈕周圍顯示,而不會重迭它。
傳回
此方法完成時,它會傳回 String 物件,代表取代現有約會之約會的 RoamingId 。
- 屬性
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)
參數
- appointment
- Appointment
物件,表示取代現有約會的約會。
- selection
- Rect
Rect是使用者選取的矩形區域 (例如,按下按鈕) ,作業系統會顯示取代約會 UI,而不是在該矩形區域內。 例如,如果應用程式使用按鈕來顯示 Rect,請傳遞按鈕的 Rect ,讓取代約會 UI 在按鈕周圍顯示,而不會重迭它。
- instanceStartDate
- DateTime DateTimeOffset
要取代之約會實例的開始日期和時間。
傳回
此方法完成時,它會傳回 String 物件,代表取代現有約會之約會的 RoamingId 。
- 屬性
Windows 需求
應用程式功能 |
appointmentsSystem
|
備註
instanceStartTime 參數必須是實例的原始開始日期。