Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxToastProvider.Name Property

Specifies a name of the toast provider.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[DefaultValue("")]
[Parameter]
public string Name { get; set; }

#Property Value

Type Default Description
String String.Empty

The name.

#Remarks

Use the Name property to identify the toast provider when a page contains several DxToastProvider objects.

Specify the DxToast.ProviderName or ToastOptions.ProviderName property to link the toast to a provider.

razor
<DxButton Text="Show a toast" Click="CreateToasts" />
<DxToastProvider Name="WarningProvider" RenderStyle="ToastRenderStyle.Warning" />

@code {
    [Inject] IToastNotificationService ToastService { get; set; }

    private void CreateToasts() {
        ToastService.ShowToast(new ToastOptions {
            ProviderName = "WarningProvider",
            Text = "The process cannot access the file.",
        });
    }
}
See Also