register


Description:

public bool register (Extension extension, string dialog_name)

Registers extension as a provider of dialog_name dialog.

The names are compared case sensitively and two extensions cannot provide the same dialog. If the function succeeds, then it adds its own reference on the extension.

Extensions providing multiple dialogs call this function multiple times, for each dialog name separately.

Parameters:

this

an UserPrompterServer

extension

an UserPrompterServerExtension descendant

dialog_name

name of a dialog, which the extensions implement

Returns:

Whether properly registered extension