Skip to content

JSExportAttribute constructor (1 of 3)

Exports an item to JavaScript, with an auto-generated JavaScript name.

C#
public JSExportAttribute()

Remarks

By default, type names are unchanged while member names are camel-cased for JavaScript.

See Also


JSExportAttribute constructor (2 of 3)

Excludes or includes an item for export to JavaScript.

C#
public JSExportAttribute(bool export)
parameterdescription
exportTrue to export the item (default), or false to exclude it from exports.

See Also


JSExportAttribute constructor (3 of 3)

Exports an item to JavaScript, with an explicit JavaScript name.

C#
public JSExportAttribute(string name)
parameterdescription
nameName of the item as exported to JavaScript.

Remarks

Names must be unique among a module's exports. Duplicates will result in a build error.

Use the name "default" to create a default export.

See Also

Released under the MIT license