Пример #1
0
        public static async Task <bool> TryDeleteEventAsync()
        {
            // Create an event first, then delete it.
            string createdEvent = await UserSnippets.CreateEventAsync();

            return(await UserSnippets.DeleteEventAsync(createdEvent));
        }
Пример #2
0
        public static async Task <bool> TryCreateEventAsync()
        {
            string createdEvent = await UserSnippets.CreateEventAsync();

            return(createdEvent != null);
        }