NodejsPlatform constructor
Initializes the Node.js platform.
C#
public NodejsPlatform(string libnodePath, string[]? args = null)
parameter | description |
---|---|
libnodePath | Path to the libnode shared library, including extension. |
args | Optional platform arguments. |
Exceptions
exception | condition |
---|---|
InvalidOperationException | A Node.js platform instance has already been loaded in the current process. |
See Also
- class NodejsPlatform
- namespace Microsoft.JavaScript.NodeApi.Runtime