ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Framework Namespace / Notification Class / Message Property
Example

In This Topic
    Message Property (Notification)
    In This Topic
    Gets or sets the message.
    Syntax
    public string Message {get; set;}
    Public Property Message As String
    Example
    Add a toast notification
    Notification notification = new Notification();
    notification.Title = FrameworkApplication.Title;
    notification.Message = "Notification 1";
    notification.ImageUrl = @"pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/ToastLicensing32.png";
    
    ArcGIS.Desktop.Framework.FrameworkApplication.AddNotification(notification);
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also