Skip to main content
Member of ML.SDK.MLEvents
Method | Static

EventToken MLEvents.AddHandler(string name, Action<[Object](https://learn.microsoft.com/en-us/dotnet/api/system.object?view=netframework-4.5)[]> handler)

static EventToken MLEvents.AddHandler(string name, Action`<Object[]>` handler);

Parameters

ParameterTypeDescription
namestringThe name of the event. This is a global name.
handlerAction<[Object](https://learn.microsoft.com/en-us/dotnet/api/system.object?view=netframework-4.5)[]>The handler function to be registered.

Returns

EventToken

A unique token assigned for the handler

Summary

Registers a global event handler for given name with given hander function.