JsNameAttribute Class

Sets the JavaScript name of a member of a class marked with JsExportAttribute, instead of its camelCase name.

[AttributeUsage(AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
public sealed class JsNameAttribute : Attribute
Inheritance
Attribute JsNameAttribute

Constructors

NameDescription
JsNameAttribute(string)Sets the JavaScript name of a member of a class marked with JsExportAttribute, instead of its camelCase name.

JsNameAttribute(string)

JsExportAttributes.cs

Sets the JavaScript name of a member of a class marked with JsExportAttribute, instead of its camelCase name.

public JsNameAttribute(string name)

Parameters

name string
The JavaScript name of the member.

Properties

NameDescription
NameGets the JavaScript name of the member.

Gets the JavaScript name of the member.

public string Name { get; }

Property value

string