alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class DiagramWebMcpSettings

    Configures WebMCP tools for a diagram whose EnableWebMcp property is enabled.

    Inheritance
    object
    ComponentBase
    DiagramWebMcpSettings
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IAsyncDisposable
    Inherited Members
    ComponentBase.SetParametersAsync(ParameterView)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.Diagram.dll
    Syntax
    public sealed class DiagramWebMcpSettings : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IAsyncDisposable
    Remarks

    The setting accepts a single source of truth for tool configuration: the declarative DiagramWebMcpTools child content. Each DiagramWebMcpTool entry selects a built-in command through DiagramWebMcpToolCommand or supplies a custom tool when Custom is used.

    • When the DiagramWebMcpTools collection is empty or omitted, every built-in tool is registered (Grid-style default).
    • A declarative built-in entry overrides the matching built-in tool (name, description, or enabled state) without changing the executor's dispatch identity. A disabled entry omits the tool from registration.
    • A declarative Custom entry executes through the component-level OnWebMcpExecute event.

    Constructors

    DiagramWebMcpSettings()

    Declaration
    public DiagramWebMcpSettings()

    Properties

    ChildContent

    Gets or sets the child content used to declare the declarative WebMCP tool set.

    Declaration
    [Parameter]
    public RenderFragment? ChildContent { get; set; }
    Property Value
    Type
    RenderFragment

    Name

    Gets or sets the name used to identify the WebMCP tool set.

    Declaration
    [Parameter]
    public string Name { get; set; }
    Property Value
    Type
    string

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    RenderTreeBuilder __builder
    Overrides
    ComponentBase.BuildRenderTree(RenderTreeBuilder)

    DisposeAsync()

    Declaration
    public ValueTask DisposeAsync()
    Returns
    Type
    ValueTask

    OnAfterRenderAsync(bool)

    Declaration
    protected override Task OnAfterRenderAsync(bool firstRender)
    Parameters
    Type Name Description
    bool firstRender
    Returns
    Type
    Task
    Overrides
    ComponentBase.OnAfterRenderAsync(bool)

    OnParametersSet()

    Declaration
    protected override void OnParametersSet()
    Overrides
    ComponentBase.OnParametersSet()

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IAsyncDisposable
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved