JSInvokableAttribute.Identifier Property

Definition

Gets the identifier for the method. The identifier must be unique within the scope of an assembly.

If not set, the identifier is taken from the name of the method. In this case the method name must be unique within the assembly.

C#
public string Identifier { get; }
C#
public string? Identifier { get; }

Property Value

Applies to

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