Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 2.28 KB

appointmentmanagerforuser_showtimeframeasync_1558661698.md

File metadata and controls

39 lines (27 loc) · 2.28 KB
-api-id -api-type
M:Windows.ApplicationModel.Appointments.AppointmentManagerForUser.ShowTimeFrameAsync(Windows.Foundation.DateTime,Windows.Foundation.TimeSpan)
winrt method

Windows.ApplicationModel.Appointments.AppointmentManagerForUser.ShowTimeFrameAsync

-description

Shows the Appointments provider app's primary UI. This typically displays a time frame from an appointments calendar.

-parameters

-param timeToShow

A date and time object that specifies the beginning of the time frame that the Appointments provider app should display.

-param duration

A timespan that hints to the Appointments provider app how long the time frame shown should be.

-returns

When this method returns, it does not return a result. On completion, the AsyncActionCompletedHandler specified by get_Completed / Completed is invoked.

-remarks

This method uses parameter values representing date-time and timespan that are represented differently depending on which language you are programming with.

  • In JavaScript, set the timeToShow value with a Date object. Set the duration value with a TimeSpan representing a time span in 100-nanosecond units.
  • In Visual C++ component extensions (C++/CX), set the timeToShow value with a DateTime structure. Set the duration value with a TimeSpan representing a time span in 100-nanosecond units.
  • In C#, use a System.DateTimeOffset value for timeToShow, and a System.TimeSpan value for duration. You can use utility API of these structures to declare the values.

For info about how to manage appointments, see Manage appointments.

-examples

-see-also

-capabilities

appointmentsSystem