CreateEventAsync() public static method

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

            return(createdEvent != null);
        }