alexa
menu

Blazor

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

    Show / Hide Table of Contents

    Class PdfViewerWebMcpSettings

    Initializes a new instance of the PdfViewerWebMcpSettings class in the SfPdfViewer2 component.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    SfBaseComponent
    PdfViewerWebMcpSettings
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnParametersSet()
    ComponentBase.OnParametersSetAsync()
    ComponentBase.RendererInfo
    ComponentBase.SetParametersAsync(ParameterView)
    ComponentBase.ShouldRender()
    ComponentBase.StateHasChanged()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    OwningComponentBase.IsDisposed
    OwningComponentBase.ScopedServices
    SfBaseComponent.Dispose()
    SfBaseComponent.Dispose(bool)
    SfBaseComponent.LicenseContext
    SfBaseComponent.OnAfterRenderAsync(bool)
    SfBaseComponent.OnInitializedAsync()
    SfBaseComponent.OnObservableChange(string, object, bool, NotifyCollectionChangedEventArgs)
    SfBaseComponent.ValidateLicenseByUICategory()
    Namespace: Syncfusion.Blazor.SfPdfViewer
    Assembly: Syncfusion.Blazor.SfPdfViewer.dll
    Syntax
    public class PdfViewerWebMcpSettings : SfBaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
    Remarks

    This settings container is used to configure per-instance WebMCP integration for the PDF Viewer. It is hosted as a child component of SfPdfViewer2 when EnableWebMcp. The settings object allows developers to define a unique viewer name and register one or more WebMCP tools through the PdfViewerWebMcpTools collection. These tools can then be invoked to extend viewer capabilities and integrate with external services or custom workflows.

    Examples

    The following example demonstrates how to configure WebMCP settings and register a tool:

    <SfPdfViewer2 EnableWebMcp="true">
        <PdfViewerWebMcpSettings Name="MyViewer">
            <PdfViewerWebMcpTools>
                <PdfViewerWebMcpTool
                    Command="analyze-document"
                    Description="Analyzes the current PDF document" />
            </PdfViewerWebMcpTools>
        </PdfViewerWebMcpSettings>
    </SfPdfViewer2>

    Constructors

    PdfViewerWebMcpSettings()

    Declaration
    public PdfViewerWebMcpSettings()

    Properties

    ChildContent

    The child content — typically one or more PdfViewerWebMcpTools wrappers containing PdfViewerWebMcpTool entries.

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

    Name

    The logical name for this settings instance. Used as the browser-registration prefix when supplied.

    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)

    OnInitialized()

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

    Implements

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