ArcGIS Pro 3.7 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 Property Message As String
    public string Message {get; set;}
    Example
    Add a toast notification
    {
      Notification notification = new()
      {
        Title = FrameworkApplication.Title,
        Message = "Notification 1",
        ImageSource = Application.Current.Resources["ToastLicensing32"] as ImageSource
      };
    
      FrameworkApplication.AddNotification(notification);
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also