public ToastNotification CreateNotification()
{
if (StrictValidation)
{
if (IsAlarmToast())
{
throw new NotificationContentValidationException(
"The ToastNotification object should not be used for alarms." +
"Use the results of GetContent() to construct a ScheduledToastNotification object.");
}
}
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.LoadXml(GetContent());
return new ToastNotification(xmlDoc);
}