JSComponentConfigurationExtensions.RegisterForJavaScript 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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)
將指定的元件類型標示為允許從 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)
參數
- configuration
- IJSComponentConfiguration
- componentType
- Type
元件類型。
- identifier
- String
JavaScript 程式碼將使用之元件類型的唯一識別碼。
適用於
RegisterForJavaScript(IJSComponentConfiguration, Type, String, String)
將指定的元件類型標示為允許從 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)
參數
- configuration
- IJSComponentConfiguration
- componentType
- Type
元件類型。
- identifier
- String
JavaScript 程式碼將使用之元件類型的唯一識別碼。
- javaScriptInitializer
- String
指定將呼叫以註冊自訂專案之 JavaScript 函式的選擇性識別碼。
適用於
RegisterForJavaScript<TComponent>(IJSComponentConfiguration, String)
將指定的元件類型標示為允許從 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
元件類型。
參數
- configuration
- IJSComponentConfiguration
- identifier
- String
JavaScript 程式碼將使用之元件類型的唯一識別碼。
適用於
RegisterForJavaScript<TComponent>(IJSComponentConfiguration, String, String)
將指定的元件類型標示為允許從 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
元件類型。
參數
- configuration
- IJSComponentConfiguration
- identifier
- String
JavaScript 程式碼將使用之元件類型的唯一識別碼。
- javaScriptInitializer
- String
指定將呼叫以註冊自訂專案之 JavaScript 函式的選擇性識別碼。