AppointmentStore.ShowAddAppointmentAsync(Appointment, Rect) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
顯示約會提供者新增約會 UI,讓使用者能夠新增約會。
public:
virtual IAsyncOperation<Platform::String ^> ^ ShowAddAppointmentAsync(Appointment ^ appointment, Rect selection) = ShowAddAppointmentAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<winrt::hstring> ShowAddAppointmentAsync(Appointment const& appointment, Rect const& selection);
IAsyncOperation<winrt::hstring> ShowAddAppointmentAsync(Appointment const& appointment, Rect const& selection);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<string> ShowAddAppointmentAsync(Appointment appointment, Rect selection);
public IAsyncOperation<string> ShowAddAppointmentAsync(Appointment appointment, Rect selection);
function showAddAppointmentAsync(appointment, selection)
Public Function ShowAddAppointmentAsync (appointment As Appointment, selection As Rect) As IAsyncOperation(Of String)
參數
- appointment
- Appointment
物件,表示要加入之約會的資訊。
- selection
- Rect
Rect是使用者選取範圍的矩形區域 (例如,按下按鈕) ,作業系統會顯示 [新增約會] UI,而不是在該矩形區域內。 例如,如果應用程式使用按鈕來顯示 Rect,請傳遞按鈕的 Rect ,讓 [新增約會 UI] 顯示在按鈕周圍,而不會重迭。
傳回
此方法完成時,它會傳回 String 物件,代表約會的 RoamingId 。 如果傳回的約會識別碼是空字串,則約會不會新增至約會提供者應用程式。
- 屬性
Windows 需求
應用程式功能 |
appointmentsSystem
|
備註
對於 Windows Phone 8.x 應用程式,此方法的行為與ShowEditNewAppointmentAsync相同,因為使用者可編輯 [新增約會 UI] 中的欄位。