Blazor link updates (#23024)
Merging this so I can pull the latest from Main. Normally I don't merge other folk's PR's for them since they may decide to still make a change. Looks like you are done though.pull/23029/head
parent
a273ff84a8
commit
480261bece
|
@ -233,7 +233,7 @@ The [`@inherits`][6] directive is used to specify a base class for a component.
|
|||
|
||||
## Component parameters
|
||||
|
||||
*Component parameters* pass data to components and are defined using public [C# properties](/csharp/programming-guide/classes-and-structs/properties) on the component class with the [`[Parameter]` attribute](xref:Microsoft.AspNetCore.Components.ParameterAttribute). In the following example, a built-in reference type (<xref:System.String?displayProperty=fullName>) and a user-defined reference type (`PanelBody`) are passed as component parameters.
|
||||
*Component parameters* pass data to components and are defined using public [C# properties](/dotnet/csharp/programming-guide/classes-and-structs/properties) on the component class with the [`[Parameter]` attribute](xref:Microsoft.AspNetCore.Components.ParameterAttribute). In the following example, a built-in reference type (<xref:System.String?displayProperty=fullName>) and a user-defined reference type (`PanelBody`) are passed as component parameters.
|
||||
|
||||
`PanelBody.cs`:
|
||||
|
||||
|
@ -1239,7 +1239,7 @@ The [`@inherits`][6] directive is used to specify a base class for a component.
|
|||
|
||||
## Component parameters
|
||||
|
||||
*Component parameters* pass data to components and are defined using public [C# properties](/csharp/programming-guide/classes-and-structs/properties) on the component class with the [`[Parameter]` attribute](xref:Microsoft.AspNetCore.Components.ParameterAttribute). In the following example, a built-in reference type (<xref:System.String?displayProperty=fullName>) and a user-defined reference type (`PanelBody`) are passed as component parameters.
|
||||
*Component parameters* pass data to components and are defined using public [C# properties](/dotnet/csharp/programming-guide/classes-and-structs/properties) on the component class with the [`[Parameter]` attribute](xref:Microsoft.AspNetCore.Components.ParameterAttribute). In the following example, a built-in reference type (<xref:System.String?displayProperty=fullName>) and a user-defined reference type (`PanelBody`) are passed as component parameters.
|
||||
|
||||
`PanelBody.cs`:
|
||||
|
||||
|
@ -2178,7 +2178,7 @@ The [`@inherits`][6] directive is used to specify a base class for a component.
|
|||
|
||||
## Component parameters
|
||||
|
||||
*Component parameters* pass data to components and are defined using public [C# properties](/csharp/programming-guide/classes-and-structs/properties) on the component class with the [`[Parameter]` attribute](xref:Microsoft.AspNetCore.Components.ParameterAttribute). In the following example, a built-in reference type (<xref:System.String?displayProperty=fullName>) and a user-defined reference type (`PanelBody`) are passed as component parameters.
|
||||
*Component parameters* pass data to components and are defined using public [C# properties](/dotnet/csharp/programming-guide/classes-and-structs/properties) on the component class with the [`[Parameter]` attribute](xref:Microsoft.AspNetCore.Components.ParameterAttribute). In the following example, a built-in reference type (<xref:System.String?displayProperty=fullName>) and a user-defined reference type (`PanelBody`) are passed as component parameters.
|
||||
|
||||
`PanelBody.cs`:
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ For now, you *can't*:
|
|||
|
||||
* Break on unhandled exceptions.
|
||||
* Hit breakpoints during app startup before the debug proxy is running. This includes breakpoints in `Program.Main` (`Program.cs`) and breakpoints in the [`OnInitialized{Async}` lifecycle methods](xref:blazor/components/lifecycle#component-initialization-oninitializedasync) of components that are loaded by the first page requested from the app.
|
||||
* Debug in non-local scenarios (for example, [Windows Subsystem for Linux (WSL)](/windows/wsl/) or [Visual Studio Codespaces](/visualstudio/codespaces/overview/what-is-vsonline)).
|
||||
* Debug in non-local scenarios (for example, [Windows Subsystem for Linux (WSL)](/windows/wsl/) or [Visual Studio Codespaces](/visualstudio/devinit/devinit-and-codespaces)).
|
||||
* Automatically rebuild the backend `*Server*` app of a hosted Blazor WebAssembly solution during debugging, for example by running the app with [`dotnet watch run`](xref:tutorials/dotnet-watch).
|
||||
|
||||
## Prerequisites
|
||||
|
@ -455,7 +455,7 @@ For now, you *can't*:
|
|||
|
||||
* Break on unhandled exceptions.
|
||||
* Hit breakpoints during app startup before the debug proxy is running. This includes breakpoints in `Program.Main` (`Program.cs`) and breakpoints in the [`OnInitialized{Async}` lifecycle methods](xref:blazor/components/lifecycle#component-initialization-oninitializedasync) of components that are loaded by the first page requested from the app.
|
||||
* Debug in non-local scenarios (for example, [Windows Subsystem for Linux (WSL)](/windows/wsl/) or [Visual Studio Codespaces](/visualstudio/codespaces/overview/what-is-vsonline)).
|
||||
* Debug in non-local scenarios (for example, [Windows Subsystem for Linux (WSL)](/windows/wsl/) or [Visual Studio Codespaces](/visualstudio/devinit/devinit-and-codespaces)).
|
||||
* Automatically rebuild the backend `*Server*` app of a hosted Blazor WebAssembly solution during debugging, for example by running the app with [`dotnet watch run`](xref:tutorials/dotnet-watch).
|
||||
|
||||
## Prerequisites
|
||||
|
@ -878,7 +878,7 @@ For now, you *can't*:
|
|||
|
||||
* Break on unhandled exceptions.
|
||||
* Hit breakpoints during app startup before the debug proxy is running. This includes breakpoints in `Program.Main` (`Program.cs`) and breakpoints in the [`OnInitialized{Async}` lifecycle methods](xref:blazor/components/lifecycle#component-initialization-oninitializedasync) of components that are loaded by the first page requested from the app.
|
||||
* Debug in non-local scenarios (for example, [Windows Subsystem for Linux (WSL)](/windows/wsl/) or [Visual Studio Codespaces](/visualstudio/codespaces/overview/what-is-vsonline)).
|
||||
* Debug in non-local scenarios (for example, [Windows Subsystem for Linux (WSL)](/windows/wsl/) or [Visual Studio Codespaces](/visualstudio/devinit/devinit-and-codespaces)).
|
||||
* Automatically rebuild the backend `*Server*` app of a hosted Blazor WebAssembly solution during debugging, for example by running the app with [`dotnet watch run`](xref:tutorials/dotnet-watch).
|
||||
|
||||
## Prerequisites
|
||||
|
|
|
@ -357,7 +357,7 @@ We recommend using the [Azure SignalR Service](xref:signalr/scale#azure-signalr-
|
|||
* <xref:blazor/security/server/threat-mitigation>
|
||||
* [Blazor Server reconnection events and component lifecycle events](xref:blazor/components/lifecycle#blazor-server-reconnection-events)
|
||||
* [What is Azure SignalR Service?](/azure/azure-signalr/signalr-overview)
|
||||
* [Performance guide for Azure SignalR Service](/azure-signalr/signalr-concept-performance#performance-factors)
|
||||
* [Performance guide for Azure SignalR Service](/azure/azure-signalr/signalr-concept-performance)
|
||||
* <xref:signalr/publish-to-azure-web-app>
|
||||
|
||||
::: zone-end
|
||||
|
@ -709,7 +709,7 @@ We recommend using the [Azure SignalR Service](xref:signalr/scale#azure-signalr-
|
|||
* <xref:blazor/security/server/threat-mitigation>
|
||||
* [Blazor Server reconnection events and component lifecycle events](xref:blazor/components/lifecycle#blazor-server-reconnection-events)
|
||||
* [What is Azure SignalR Service?](/azure/azure-signalr/signalr-overview)
|
||||
* [Performance guide for Azure SignalR Service](/azure-signalr/signalr-concept-performance#performance-factors)
|
||||
* [Performance guide for Azure SignalR Service](/azure/azure-signalr/signalr-concept-performance)
|
||||
* <xref:signalr/publish-to-azure-web-app>
|
||||
|
||||
::: zone-end
|
||||
|
@ -1032,7 +1032,7 @@ We recommend using the [Azure SignalR Service](xref:signalr/scale#azure-signalr-
|
|||
* <xref:blazor/security/server/threat-mitigation>
|
||||
* [Blazor Server reconnection events and component lifecycle events](xref:blazor/components/lifecycle#blazor-server-reconnection-events)
|
||||
* [What is Azure SignalR Service?](/azure/azure-signalr/signalr-overview)
|
||||
* [Performance guide for Azure SignalR Service](/azure-signalr/signalr-concept-performance#performance-factors)
|
||||
* [Performance guide for Azure SignalR Service](/azure/azure-signalr/signalr-concept-performance)
|
||||
* <xref:signalr/publish-to-azure-web-app>
|
||||
|
||||
::: zone-end
|
||||
|
|
|
@ -59,7 +59,7 @@ We recommend using the [Azure SignalR Service](xref:signalr/scale#azure-signalr-
|
|||
> For more information, see:
|
||||
>
|
||||
> * [What is Azure SignalR Service?](/azure/azure-signalr/signalr-overview)
|
||||
> * [Performance guide for Azure SignalR Service](/azure-signalr/signalr-concept-performance#performance-factors)
|
||||
> * [Performance guide for Azure SignalR Service](/azure/azure-signalr/signalr-concept-performance#performance-factors)
|
||||
> * <xref:signalr/publish-to-azure-web-app>
|
||||
|
||||
### Configuration
|
||||
|
@ -276,7 +276,7 @@ We recommend using the [Azure SignalR Service](xref:signalr/scale#azure-signalr-
|
|||
> For more information, see:
|
||||
>
|
||||
> * [What is Azure SignalR Service?](/azure/azure-signalr/signalr-overview)
|
||||
> * [Performance guide for Azure SignalR Service](/azure-signalr/signalr-concept-performance#performance-factors)
|
||||
> * [Performance guide for Azure SignalR Service](/azure/azure-signalr/signalr-concept-performance#performance-factors)
|
||||
> * <xref:signalr/publish-to-azure-web-app>
|
||||
|
||||
### Configuration
|
||||
|
@ -493,7 +493,7 @@ We recommend using the [Azure SignalR Service](xref:signalr/scale#azure-signalr-
|
|||
> For more information, see:
|
||||
>
|
||||
> * [What is Azure SignalR Service?](/azure/azure-signalr/signalr-overview)
|
||||
> * [Performance guide for Azure SignalR Service](/azure-signalr/signalr-concept-performance#performance-factors)
|
||||
> * [Performance guide for Azure SignalR Service](/azure/azure-signalr/signalr-concept-performance#performance-factors)
|
||||
> * <xref:signalr/publish-to-azure-web-app>
|
||||
|
||||
### Configuration
|
||||
|
|
|
@ -360,7 +360,7 @@ The `{JAVASCRIPT FUNCTION}` placeholder is the JS function identifier.
|
|||
An <xref:Microsoft.AspNetCore.Components.ElementReference> can't be passed between components because:
|
||||
|
||||
* The instance is only guaranteed to exist after the component is rendered, which is during or after a component's <xref:Microsoft.AspNetCore.Components.ComponentBase.OnAfterRender%2A>/<xref:Microsoft.AspNetCore.Components.ComponentBase.OnAfterRenderAsync%2A> method executes.
|
||||
* An <xref:Microsoft.AspNetCore.Components.ElementReference> is a [`struct`](/csharp/language-reference/builtin-types/struct), which can't be passed as a [component parameter](xref:blazor/components/index#component-parameters).
|
||||
* An <xref:Microsoft.AspNetCore.Components.ElementReference> is a [`struct`](/dotnet/csharp/language-reference/builtin-types/struct), which can't be passed as a [component parameter](xref:blazor/components/index#component-parameters).
|
||||
|
||||
For a parent component to make an element reference available to other components, the parent component can:
|
||||
|
||||
|
@ -1054,7 +1054,7 @@ The `{JAVASCRIPT FUNCTION}` placeholder is the JS function identifier.
|
|||
An <xref:Microsoft.AspNetCore.Components.ElementReference> can't be passed between components because:
|
||||
|
||||
* The instance is only guaranteed to exist after the component is rendered, which is during or after a component's <xref:Microsoft.AspNetCore.Components.ComponentBase.OnAfterRender%2A>/<xref:Microsoft.AspNetCore.Components.ComponentBase.OnAfterRenderAsync%2A> method executes.
|
||||
* An <xref:Microsoft.AspNetCore.Components.ElementReference> is a [`struct`](/csharp/language-reference/builtin-types/struct), which can't be passed as a [component parameter](xref:blazor/components/index#component-parameters).
|
||||
* An <xref:Microsoft.AspNetCore.Components.ElementReference> is a [`struct`](/dotnet/csharp/language-reference/builtin-types/struct), which can't be passed as a [component parameter](xref:blazor/components/index#component-parameters).
|
||||
|
||||
For a parent component to make an element reference available to other components, the parent component can:
|
||||
|
||||
|
@ -1608,7 +1608,7 @@ The `{JAVASCRIPT FUNCTION}` placeholder is the JS function identifier.
|
|||
An <xref:Microsoft.AspNetCore.Components.ElementReference> can't be passed between components because:
|
||||
|
||||
* The instance is only guaranteed to exist after the component is rendered, which is during or after a component's <xref:Microsoft.AspNetCore.Components.ComponentBase.OnAfterRender%2A>/<xref:Microsoft.AspNetCore.Components.ComponentBase.OnAfterRenderAsync%2A> method executes.
|
||||
* An <xref:Microsoft.AspNetCore.Components.ElementReference> is a [`struct`](/csharp/language-reference/builtin-types/struct), which can't be passed as a [component parameter](xref:blazor/components/index#component-parameters).
|
||||
* An <xref:Microsoft.AspNetCore.Components.ElementReference> is a [`struct`](/dotnet/csharp/language-reference/builtin-types/struct), which can't be passed as a [component parameter](xref:blazor/components/index#component-parameters).
|
||||
|
||||
For a parent component to make an element reference available to other components, the parent component can:
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@ There's no official Microsoft testing framework for Blazor, but the community-dr
|
|||
> [!NOTE]
|
||||
> bUnit is a third-party testing library and isn't supported or maintained by Microsoft.
|
||||
|
||||
bUnit works with general-purpose testing frameworks, such as [MSTest](/dotnet/core/testing/unit-testing-with-mstest), [NUnit](https://nunit.org/), and [xUnit](https://xunit.github.io/). These testing frameworks make bUnit tests look and feel like regular unit tests. bUnit tests integrated with a general-purpose testing framework are ordinarily executed with:
|
||||
bUnit works with general-purpose testing frameworks, such as [MSTest](/dotnet/core/testing/unit-testing-with-mstest), [NUnit](https://nunit.org/), and [xUnit](https://xunit.net/). These testing frameworks make bUnit tests look and feel like regular unit tests. bUnit tests integrated with a general-purpose testing framework are ordinarily executed with:
|
||||
|
||||
* [Visual Studio's Test Explorer](/visualstudio/test/run-unit-tests-with-test-explorer).
|
||||
* [`dotnet test`](/dotnet/core/tools/dotnet-test) CLI command in a command shell.
|
||||
|
@ -206,7 +206,7 @@ There's no official Microsoft testing framework for Blazor, but the community-dr
|
|||
> [!NOTE]
|
||||
> bUnit is a third-party testing library and isn't supported or maintained by Microsoft.
|
||||
|
||||
bUnit works with general-purpose testing frameworks, such as [MSTest](/dotnet/core/testing/unit-testing-with-mstest), [NUnit](https://nunit.org/), and [xUnit](https://xunit.github.io/). These testing frameworks make bUnit tests look and feel like regular unit tests. bUnit tests integrated with a general-purpose testing framework are ordinarily executed with:
|
||||
bUnit works with general-purpose testing frameworks, such as [MSTest](/dotnet/core/testing/unit-testing-with-mstest), [NUnit](https://nunit.org/), and [xUnit](https://xunit.net/). These testing frameworks make bUnit tests look and feel like regular unit tests. bUnit tests integrated with a general-purpose testing framework are ordinarily executed with:
|
||||
|
||||
* [Visual Studio's Test Explorer](/visualstudio/test/run-unit-tests-with-test-explorer).
|
||||
* [`dotnet test`](/dotnet/core/tools/dotnet-test) CLI command in a command shell.
|
||||
|
@ -336,7 +336,7 @@ There's no official Microsoft testing framework for Blazor, but the community-dr
|
|||
> [!NOTE]
|
||||
> bUnit is a third-party testing library and isn't supported or maintained by Microsoft.
|
||||
|
||||
bUnit works with general-purpose testing frameworks, such as [MSTest](/dotnet/core/testing/unit-testing-with-mstest), [NUnit](https://nunit.org/), and [xUnit](https://xunit.github.io/). These testing frameworks make bUnit tests look and feel like regular unit tests. bUnit tests integrated with a general-purpose testing framework are ordinarily executed with:
|
||||
bUnit works with general-purpose testing frameworks, such as [MSTest](/dotnet/core/testing/unit-testing-with-mstest), [NUnit](https://nunit.org/), and [xUnit](https://xunit.net/). These testing frameworks make bUnit tests look and feel like regular unit tests. bUnit tests integrated with a general-purpose testing framework are ordinarily executed with:
|
||||
|
||||
* [Visual Studio's Test Explorer](/visualstudio/test/run-unit-tests-with-test-explorer).
|
||||
* [`dotnet test`](/dotnet/core/tools/dotnet-test) CLI command in a command shell.
|
||||
|
|
Loading…
Reference in New Issue