-api-id | -api-type |
---|---|
M:Windows.ApplicationModel.Appointments.AppointmentManagerForUser.ShowTimeFrameAsync(Windows.Foundation.DateTime,Windows.Foundation.TimeSpan) |
winrt method |
Shows the Appointments provider app's primary UI. This typically displays a time frame from an appointments calendar.
A date and time object that specifies the beginning of the time frame that the Appointments provider app should display.
A timespan that hints to the Appointments provider app how long the time frame shown should be.
When this method returns, it does not return a result. On completion, the AsyncActionCompletedHandler specified by get_Completed / Completed is invoked.
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.
appointmentsSystem