Redigeeri

Jagamisviis:


JSImportAttribute Constructors

Definition

Overloads

JSImportAttribute(String)

Initializes a new instance of the JSImportAttribute class.

JSImportAttribute(String, String)

Initializes a new instance of the JSImportAttribute class.

JSImportAttribute(String)

Initializes a new instance of the JSImportAttribute class.

public:
 JSImportAttribute(System::String ^ functionName);
public JSImportAttribute (string functionName);
new System.Runtime.InteropServices.JavaScript.JSImportAttribute : string -> System.Runtime.InteropServices.JavaScript.JSImportAttribute
Public Sub New (functionName As String)

Parameters

functionName
String

The name of the function to be bound in the module. Use dots for nested objects.

Applies to

JSImportAttribute(String, String)

Initializes a new instance of the JSImportAttribute class.

public:
 JSImportAttribute(System::String ^ functionName, System::String ^ moduleName);
public JSImportAttribute (string functionName, string moduleName);
new System.Runtime.InteropServices.JavaScript.JSImportAttribute : string * string -> System.Runtime.InteropServices.JavaScript.JSImportAttribute
Public Sub New (functionName As String, moduleName As String)

Parameters

functionName
String

The name of the target JavaScript function. This name will be used as a key to locate the function in the module. Functions nested inside of objects can be referred to by using the dot operator to connect one or more names.

moduleName
String

Globally unique identifier of the ES6 module, if any, that contains the function. The module must be loaded via ImportAsync(String, String, CancellationToken) before any attempt to invoke the function.

Applies to