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
- class JSExportAttribute
- namespace Microsoft.JavaScript.NodeApi
JSExportAttribute constructor (2 of 3)
Excludes or includes an item for export to JavaScript.
C#
public JSExportAttribute(bool export)
parameter | description |
---|---|
export | True to export the item (default), or false to exclude it from exports. |
See Also
- class JSExportAttribute
- namespace Microsoft.JavaScript.NodeApi
JSExportAttribute constructor (3 of 3)
Exports an item to JavaScript, with an explicit JavaScript name.
C#
public JSExportAttribute(string name)
parameter | description |
---|---|
name | Name 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
- class JSExportAttribute
- namespace Microsoft.JavaScript.NodeApi