JSComponentConfigurationExtensions.RegisterForJavaScript Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přetížení
RegisterForJavaScript(IJSComponentConfiguration, Type, String) |
Označí zadaný typ komponenty jako povolený pro vytvoření instance z JavaScriptu. |
RegisterForJavaScript(IJSComponentConfiguration, Type, String, String) |
Označí zadaný typ komponenty jako povolený pro vytvoření instance z JavaScriptu. |
RegisterForJavaScript<TComponent>(IJSComponentConfiguration, String) |
Označí zadaný typ komponenty jako povolený pro vytvoření instance z JavaScriptu. |
RegisterForJavaScript<TComponent>(IJSComponentConfiguration, String, String) |
Označí zadaný typ komponenty jako povolený pro vytvoření instance z JavaScriptu. |
RegisterForJavaScript(IJSComponentConfiguration, Type, String)
Označí zadaný typ komponenty jako povolený pro vytvoření instance z JavaScriptu.
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)
Parametry
- configuration
- IJSComponentConfiguration
Hodnota IJSComponentConfiguration
- componentType
- Type
Typ komponenty.
- identifier
- String
Jedinečný identifikátor pro typ komponenty, který bude použit kódem JavaScriptu.
Platí pro
RegisterForJavaScript(IJSComponentConfiguration, Type, String, String)
Označí zadaný typ komponenty jako povolený pro vytvoření instance z JavaScriptu.
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)
Parametry
- configuration
- IJSComponentConfiguration
Hodnota IJSComponentConfiguration
- componentType
- Type
Typ komponenty.
- identifier
- String
Jedinečný identifikátor pro typ komponenty, který bude použit kódem JavaScriptu.
- javaScriptInitializer
- String
Určuje volitelný identifikátor funkce Jazyka JavaScript, která bude volána k registraci vlastního elementu.
Platí pro
RegisterForJavaScript<TComponent>(IJSComponentConfiguration, String)
Označí zadaný typ komponenty jako povolený pro vytvoření instance z JavaScriptu.
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)
Parametry typu
- TComponent
Typ komponenty.
Parametry
- configuration
- IJSComponentConfiguration
Hodnota IJSComponentConfiguration
- identifier
- String
Jedinečný identifikátor pro typ komponenty, který bude použit kódem JavaScriptu.
Platí pro
RegisterForJavaScript<TComponent>(IJSComponentConfiguration, String, String)
Označí zadaný typ komponenty jako povolený pro vytvoření instance z JavaScriptu.
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)
Parametry typu
- TComponent
Typ komponenty.
Parametry
- configuration
- IJSComponentConfiguration
Hodnota IJSComponentConfiguration
- identifier
- String
Jedinečný identifikátor pro typ komponenty, který bude použit kódem JavaScriptu.
- javaScriptInitializer
- String
Určuje volitelný identifikátor funkce Jazyka JavaScript, která bude volána k registraci vlastního elementu.
Platí pro
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro