Condividi tramite


AppointmentManagerForUser.ShowAddAppointmentAsync Metodo

Definizione

Overload

ShowAddAppointmentAsync(Appointment, Rect)

Mostra l'interfaccia utente Aggiungi appuntamento del provider Appuntamenti per consentire all'utente di aggiungere un appuntamento.

ShowAddAppointmentAsync(Appointment, Rect, Placement)

Mostra l'interfaccia utente Aggiungi appuntamento del provider Appuntamenti per consentire all'utente di aggiungere un appuntamento.

ShowAddAppointmentAsync(Appointment, Rect)

Mostra l'interfaccia utente Aggiungi appuntamento del provider Appuntamenti per consentire all'utente di aggiungere un appuntamento.

public:
 virtual IAsyncOperation<Platform::String ^> ^ ShowAddAppointmentAsync(Appointment ^ appointment, Rect selection) = ShowAddAppointmentAsync;
/// [Windows.Foundation.Metadata.Overload("ShowAddAppointmentAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<winrt::hstring> ShowAddAppointmentAsync(Appointment const& appointment, Rect const& selection);
[Windows.Foundation.Metadata.Overload("ShowAddAppointmentAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
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)

Parametri

appointment
Appointment

Oggetto che rappresenta le informazioni da aggiungere all'appuntamento.

selection
Rect

Rect è l'area rettangolare della selezione utente (ad esempio, premendo un pulsante), intorno alla quale il sistema operativo visualizza l'interfaccia utente Aggiungi appuntamento, non all'interno di quell'area rettangolare. Ad esempio, se un'app usa un pulsante per visualizzare Rect, passare il pulsante Rect del pulsante in modo che l'interfaccia utente Aggiungi appuntamento venga visualizzata intorno al pulsante, non sovrapposta.

Restituisce

IAsyncOperation<String>

IAsyncOperation<Platform::String>

IAsyncOperation<winrt::hstring>

Al termine di questo metodo, restituisce un oggetto String che rappresenta l'appuntamento. Questo funge da identificatore di appuntamento per un riferimento futuro durante l'aggiornamento o la rimozione. Se l'identificatore dell'appuntamento restituito è una stringa vuota, l'appuntamento non è stato aggiunto all'app provider Appuntamenti.

Attributi

Requisiti Windows

Funzionalità dell'app
appointmentsSystem

Commenti

Quando si chiama questo metodo, l'app provider di appuntamenti viene visualizzata in un riquadro di chiusura leggero ospitato dall'app.

In Windows Phone questo metodo si comporta come ShowEditNewAppointmentAsync, in cui i campi nell'interfaccia utente Aggiungi appuntamento sono modificabili dall'utente.

Vedi anche

Si applica a

ShowAddAppointmentAsync(Appointment, Rect, Placement)

Mostra l'interfaccia utente Aggiungi appuntamento del provider Appuntamenti per consentire all'utente di aggiungere un appuntamento.

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

Parametri

appointment
Appointment

Oggetto che rappresenta le informazioni da aggiungere all'appuntamento.

selection
Rect

Rect è l'area rettangolare della selezione utente (ad esempio, premendo un pulsante), intorno alla quale il sistema operativo visualizza l'interfaccia utente Aggiungi appuntamento, non all'interno di quell'area rettangolare. Ad esempio, se un'app usa un pulsante per visualizzare Rect, passare il pulsante Rect del pulsante in modo che l'interfaccia utente Aggiungi appuntamento venga visualizzata intorno al pulsante, non sovrapposta.

preferredPlacement
Placement

Posizionamento che descrive il posizionamento preferito dell'interfaccia utente Aggiungi appuntamento.

Restituisce

IAsyncOperation<String>

IAsyncOperation<Platform::String>

IAsyncOperation<winrt::hstring>

Al termine di questo metodo, restituisce un oggetto String che rappresenta l'appuntamento. Questo funge da identificatore di appuntamento per un riferimento futuro durante l'aggiornamento o la rimozione. Se l'identificatore dell'appuntamento restituito è una stringa vuota, l'appuntamento non è stato aggiunto all'app provider Appuntamenti.

Attributi

Requisiti Windows

Funzionalità dell'app
appointmentsSystem

Commenti

Quando si chiama questo metodo, l'app provider di appuntamenti viene visualizzata in un riquadro di chiusura leggero ospitato dall'app.

In Windows Phone questo metodo si comporta come ShowEditNewAppointmentAsync, in cui i campi nell'interfaccia utente Aggiungi appuntamento sono modificabili dall'utente.

Vedi anche

Si applica a