JSInvokableAttribute Constructors

Definition

Overloads

JSInvokableAttribute()

Constructs an instance of JSInvokableAttribute without setting an identifier for the method.

JSInvokableAttribute(String)

Constructs an instance of JSInvokableAttribute using the specified identifier.

JSInvokableAttribute()

Source:
JSInvokableAttribute.cs
Source:
JSInvokableAttribute.cs
Source:
JSInvokableAttribute.cs
Source:
JSInvokableAttribute.cs
Source:
JSInvokableAttribute.cs
Source:
JSInvokableAttribute.cs
Source:
JSInvokableAttribute.cs

Constructs an instance of JSInvokableAttribute without setting an identifier for the method.

C#
public JSInvokableAttribute ();

Applies to

ASP.NET Core 9.0 and other versions
Product Versions
ASP.NET Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

JSInvokableAttribute(String)

Source:
JSInvokableAttribute.cs
Source:
JSInvokableAttribute.cs
Source:
JSInvokableAttribute.cs
Source:
JSInvokableAttribute.cs
Source:
JSInvokableAttribute.cs
Source:
JSInvokableAttribute.cs
Source:
JSInvokableAttribute.cs

Constructs an instance of JSInvokableAttribute using the specified identifier.

C#
public JSInvokableAttribute (string identifier);

Parameters

identifier
String

An identifier for the method, which must be unique within the scope of the assembly.

Applies to

ASP.NET Core 9.0 and other versions
Product Versions
ASP.NET Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0