ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Core.Geoprocessing Namespace / IGPResult Interface / Messages Property
Example

In This Topic
    Messages Property
    In This Topic
    All output messages. To filter only one type of messages use GPMessageType (Warning, Error) - see code example below.
    Syntax
    Example
    var warnings = result.Messages.Where(it => it.Type == GPMessageType.Warning);
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also