共用方式為


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)

來源:
JSComponentConfigurationExtensions.cs
來源:
JSComponentConfigurationExtensions.cs
來源:
JSComponentConfigurationExtensions.cs
來源:
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)

來源:
JSComponentConfigurationExtensions.cs
來源:
JSComponentConfigurationExtensions.cs
來源:
JSComponentConfigurationExtensions.cs
來源:
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)

來源:
JSComponentConfigurationExtensions.cs
來源:
JSComponentConfigurationExtensions.cs
來源:
JSComponentConfigurationExtensions.cs
來源:
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)

來源:
JSComponentConfigurationExtensions.cs
來源:
JSComponentConfigurationExtensions.cs
來源:
JSComponentConfigurationExtensions.cs
來源:
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 函式的選擇性識別碼。

適用於