Skip to content

DotNetInstanceCallbackArgs

Mika Berglund edited this page Jan 24, 2021 · 3 revisions

DotNetInstanceCallbackArgs Class

The class that is used as arguments when the DotNetInstanceCallbackHandler class calls a JavaScript function.

Inheritance

DotNetInstanceCallbackArgs : System.IDisposable

Properties

Name Type Description
SuccessCallback DotNetInstanceMethod The callback that your JavaScript code must call to send data back to your Blazor code.
FailureCallback DotNetInstanceMethod The callback that your JavaScript code must call to notify your Blazor code of a failure.
Data Dictionary<string, object> Any additional data that you want to send to the JavaScript function.

JSON Serialization

This arguments object will be serialized to the following JSON before sending it to your JavaScript code.

{
    "successCallback": { ... },
    "failureCallback": { ... },
    "data": { ... }
}