Skip to content

Host.ShowMessage

Display a modal message box with an OK button.

When is this called?

Blocks until the user clicks OK. Also shown in HydroSym command-line mode, where it halts an unattended run.

C# Usage

Host.ShowMessage("Hello from plugin");

Request

Field Type Required Description
title string Dialog title. Defaults to the host application name (HydroSym or HydroMan).
message string ✅ Message text to display.
level string Message level: info (default), warning, error. Lowercase only; any other value shows an info icon.

Response

This method returns no data on success.

JSON

The SDK serializes these JSON bodies for you.

{
  "title": "Debug",
  "message": "Hello from debug plugin",
  "level": "info"
}
{}

JSON Schemas: Request · Response