JSComponentConfigurationExtensions.RegisterForJavaScript 方法

定义

重载

RegisterForJavaScript(IJSComponentConfiguration, Type, String)

将指定的组件类型标记为允许从 JavaScript 实例化。

RegisterForJavaScript(IJSComponentConfiguration, Type, String, String)

将指定的组件类型标记为允许从 JavaScript 实例化。

RegisterForJavaScript<TComponent>(IJSComponentConfiguration, String)

将指定的组件类型标记为允许从 JavaScript 实例化。

RegisterForJavaScript<TComponent>(IJSComponentConfiguration, String, String)

将指定的组件类型标记为允许从 JavaScript 实例化。

RegisterForJavaScript(IJSComponentConfiguration, Type, String)

Source:
JSComponentConfigurationExtensions.cs
Source:
JSComponentConfigurationExtensions.cs
Source:
JSComponentConfigurationExtensions.cs
Source:
JSComponentConfigurationExtensions.cs

将指定的组件类型标记为允许从 JavaScript 实例化。

public static void RegisterForJavaScript (this Microsoft.AspNetCore.Components.Web.IJSComponentConfiguration configuration, Type componentType, string identifier);
static member RegisterForJavaScript : Microsoft.AspNetCore.Components.Web.IJSComponentConfiguration * Type * string -> unit
<Extension()>
Public Sub RegisterForJavaScript (configuration As IJSComponentConfiguration, componentType As Type, identifier As String)

参数

componentType
Type

组件类型。

identifier
String

JavaScript 代码将使用的组件类型的唯一标识符。

适用于

RegisterForJavaScript(IJSComponentConfiguration, Type, String, String)

Source:
JSComponentConfigurationExtensions.cs
Source:
JSComponentConfigurationExtensions.cs
Source:
JSComponentConfigurationExtensions.cs
Source:
JSComponentConfigurationExtensions.cs

将指定的组件类型标记为允许从 JavaScript 实例化。

public static void RegisterForJavaScript (this Microsoft.AspNetCore.Components.Web.IJSComponentConfiguration configuration, Type componentType, string identifier, string javaScriptInitializer);
static member RegisterForJavaScript : Microsoft.AspNetCore.Components.Web.IJSComponentConfiguration * Type * string * string -> unit
<Extension()>
Public Sub RegisterForJavaScript (configuration As IJSComponentConfiguration, componentType As Type, identifier As String, javaScriptInitializer As String)

参数

componentType
Type

组件类型。

identifier
String

JavaScript 代码将使用的组件类型的唯一标识符。

javaScriptInitializer
String

指定将调用以注册自定义元素的 JavaScript 函数的可选标识符。

适用于

RegisterForJavaScript<TComponent>(IJSComponentConfiguration, String)

Source:
JSComponentConfigurationExtensions.cs
Source:
JSComponentConfigurationExtensions.cs
Source:
JSComponentConfigurationExtensions.cs
Source:
JSComponentConfigurationExtensions.cs

将指定的组件类型标记为允许从 JavaScript 实例化。

public static void RegisterForJavaScript<TComponent> (this Microsoft.AspNetCore.Components.Web.IJSComponentConfiguration configuration, string identifier) where TComponent : Microsoft.AspNetCore.Components.IComponent;
static member RegisterForJavaScript : Microsoft.AspNetCore.Components.Web.IJSComponentConfiguration * string -> unit (requires 'Component :> Microsoft.AspNetCore.Components.IComponent)
<Extension()>
Public Sub RegisterForJavaScript(Of TComponent As IComponent) (configuration As IJSComponentConfiguration, identifier As String)

类型参数

TComponent

组件类型。

参数

identifier
String

JavaScript 代码将使用的组件类型的唯一标识符。

适用于

RegisterForJavaScript<TComponent>(IJSComponentConfiguration, String, String)

Source:
JSComponentConfigurationExtensions.cs
Source:
JSComponentConfigurationExtensions.cs
Source:
JSComponentConfigurationExtensions.cs
Source:
JSComponentConfigurationExtensions.cs

将指定的组件类型标记为允许从 JavaScript 实例化。

public static void RegisterForJavaScript<TComponent> (this Microsoft.AspNetCore.Components.Web.IJSComponentConfiguration configuration, string identifier, string javaScriptInitializer) where TComponent : Microsoft.AspNetCore.Components.IComponent;
static member RegisterForJavaScript : Microsoft.AspNetCore.Components.Web.IJSComponentConfiguration * string * string -> unit (requires 'Component :> Microsoft.AspNetCore.Components.IComponent)
<Extension()>
Public Sub RegisterForJavaScript(Of TComponent As IComponent) (configuration As IJSComponentConfiguration, identifier As String, javaScriptInitializer As String)

类型参数

TComponent

组件类型。

参数

identifier
String

JavaScript 代码将使用的组件类型的唯一标识符。

javaScriptInitializer
String

指定将调用以注册自定义元素的 JavaScript 函数的可选标识符。

适用于