AppointmentManagerForUser.ShowRemoveAppointmentAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ShowRemoveAppointmentAsync(String, Rect) |
顯示約會提供者移除約會 UI,讓使用者移除約會。 |
ShowRemoveAppointmentAsync(String, Rect, Placement) |
顯示約會提供者移除約會 UI,讓使用者移除約會。 |
ShowRemoveAppointmentAsync(String, Rect, Placement, DateTime) |
顯示約會提供者移除約會 UI,讓使用者移除約會。 |
ShowRemoveAppointmentAsync(String, Rect)
顯示約會提供者移除約會 UI,讓使用者移除約會。
public:
virtual IAsyncOperation<bool> ^ ShowRemoveAppointmentAsync(Platform::String ^ appointmentId, Rect selection) = ShowRemoveAppointmentAsync;
/// [Windows.Foundation.Metadata.Overload("ShowRemoveAppointmentAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> ShowRemoveAppointmentAsync(winrt::hstring const& appointmentId, Rect const& selection);
[Windows.Foundation.Metadata.Overload("ShowRemoveAppointmentAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> ShowRemoveAppointmentAsync(string appointmentId, Rect selection);
function showRemoveAppointmentAsync(appointmentId, selection)
Public Function ShowRemoveAppointmentAsync (appointmentId As String, selection As Rect) As IAsyncOperation(Of Boolean)
參數
- appointmentId
-
String
Platform::String
winrt::hstring
約會識別碼。 這通常是從先前 ShowAddAppointmentAsync 呼叫的非同步傳回值取得。
- selection
- Rect
Rect是使用者選取範圍的矩形區域 (,例如,按下按鈕) ,作業系統會顯示移除約會 UI,而不是在該矩形區域內。 例如,如果應用程式使用按鈕來顯示 Rect,請傳遞按鈕的 Rect ,讓 [移除約會] UI 在按鈕周圍顯示,而不會重迭它。
傳回
此方法完成時,它會傳回 布林 值,指出約會提供者應用程式是否已移除約會。
- 屬性
Windows 需求
應用程式功能 |
appointmentsSystem
|
備註
當您呼叫此方法時,約會提供者應用程式會顯示在應用程式所裝載的淺色關閉窗格中。
這個方法可能會傳回 false,即使已成功移除約會也一般。
另請參閱
- ShowRemoveAppointmentAsync(String, Rect, Placement)
- ShowRemoveAppointmentAsync(String, Rect, Placement, DateTime)
適用於
ShowRemoveAppointmentAsync(String, Rect, Placement)
顯示約會提供者移除約會 UI,讓使用者移除約會。
public:
virtual IAsyncOperation<bool> ^ ShowRemoveAppointmentAsync(Platform::String ^ appointmentId, Rect selection, Placement preferredPlacement) = ShowRemoveAppointmentAsync;
/// [Windows.Foundation.Metadata.Overload("ShowRemoveAppointmentWithPlacementAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> ShowRemoveAppointmentAsync(winrt::hstring const& appointmentId, Rect const& selection, Placement const& preferredPlacement);
[Windows.Foundation.Metadata.Overload("ShowRemoveAppointmentWithPlacementAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> ShowRemoveAppointmentAsync(string appointmentId, Rect selection, Placement preferredPlacement);
function showRemoveAppointmentAsync(appointmentId, selection, preferredPlacement)
Public Function ShowRemoveAppointmentAsync (appointmentId As String, selection As Rect, preferredPlacement As Placement) As IAsyncOperation(Of Boolean)
參數
- appointmentId
-
String
Platform::String
winrt::hstring
約會識別碼。 這通常是從先前 ShowAddAppointmentAsync 呼叫的非同步傳回值取得。
- selection
- Rect
Rect是使用者選取範圍的矩形區域 (,例如,按下按鈕) ,作業系統會顯示移除約會 UI,而不是在該矩形區域內。 例如,如果應用程式使用按鈕來顯示 Rect,請傳遞按鈕的 Rect ,讓 [移除約會] UI 在按鈕周圍顯示,而不會重迭它。
傳回
此方法完成時,它會傳回 布林 值,指出約會提供者應用程式是否已移除約會。
- 屬性
Windows 需求
應用程式功能 |
appointmentsSystem
|
備註
當您呼叫此方法時,約會提供者應用程式會顯示在應用程式所裝載的淺色關閉窗格中。
這個方法可能會傳回 false,即使已成功移除約會也一般。
另請參閱
- ShowRemoveAppointmentAsync(String, Rect)
- ShowRemoveAppointmentAsync(String, Rect, Placement, DateTime)
適用於
ShowRemoveAppointmentAsync(String, Rect, Placement, DateTime)
顯示約會提供者移除約會 UI,讓使用者移除約會。
public:
virtual IAsyncOperation<bool> ^ ShowRemoveAppointmentAsync(Platform::String ^ appointmentId, Rect selection, Placement preferredPlacement, DateTime instanceStartDate) = ShowRemoveAppointmentAsync;
/// [Windows.Foundation.Metadata.Overload("ShowRemoveAppointmentWithPlacementAndDateAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> ShowRemoveAppointmentAsync(winrt::hstring const& appointmentId, Rect const& selection, Placement const& preferredPlacement, DateTime const& instanceStartDate);
[Windows.Foundation.Metadata.Overload("ShowRemoveAppointmentWithPlacementAndDateAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> ShowRemoveAppointmentAsync(string appointmentId, Rect selection, Placement preferredPlacement, System.DateTimeOffset instanceStartDate);
function showRemoveAppointmentAsync(appointmentId, selection, preferredPlacement, instanceStartDate)
Public Function ShowRemoveAppointmentAsync (appointmentId As String, selection As Rect, preferredPlacement As Placement, instanceStartDate As DateTimeOffset) As IAsyncOperation(Of Boolean)
參數
- appointmentId
-
String
Platform::String
winrt::hstring
約會識別碼。 這通常是從先前 ShowAddAppointmentAsync 呼叫的非同步傳回值取得。
- selection
- Rect
Rect是使用者選取範圍的矩形區域 (,例如,按下按鈕) ,作業系統會顯示移除約會 UI,而不是在該矩形區域內。 例如,如果應用程式使用按鈕來顯示 Rect,請傳遞按鈕的 Rect ,讓 [移除約會] UI 在按鈕周圍顯示,而不會重迭它。
- instanceStartDate
- DateTime DateTimeOffset
要移除之約會實例的開始日期和時間。
傳回
此方法完成時,它會傳回 布林 值,指出約會提供者應用程式是否已移除約會。
- 屬性
Windows 需求
應用程式功能 |
appointmentsSystem
|
備註
當您呼叫此方法時,約會提供者應用程式會顯示在應用程式所裝載的淺色關閉窗格中。
這個方法可能會傳回 false,即使已成功移除約會也一般。