CreateEventAsync() public static method

public static CreateEventAsync ( ) : Task
return Task
Beispiel #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));
        }
Beispiel #2
0
        public static async Task <bool> TryCreateEventAsync()
        {
            string createdEvent = await UserSnippets.CreateEventAsync();

            return(createdEvent != null);
        }