BackgroundTaskComponent.ToastNotificationBackgroundTask.SendToast C# (CSharp) Method

SendToast() private method

Simple method to show a basic toast with a message.
private SendToast ( string message ) : void
message string
return void
        private void SendToast(string message)
        {
            ToastContent content = new ToastContent()
            {
                Visual = new ToastVisual()
                {
                    BindingGeneric = new ToastBindingGeneric()
                    {
                        Children =
                        {
                            new AdaptiveText()
                            {
                                Text = "Background Task Completed"
                            },

                            new AdaptiveText()
                            {
                                Text = message
                            }
                        }
                    }
                }
            };

            ToastNotificationManager.CreateToastNotifier().Show(new ToastNotification(content.GetXml()));
        }
    }
ToastNotificationBackgroundTask