Share via


MediaComponentBase Class

Definition

Base component that handles turning a media stream into an object URL plus caching and lifetime management. Subclasses implement their own rendering and provide the target attribute (e.g., src or href) used

public abstract class MediaComponentBase : IAsyncDisposable, Microsoft.AspNetCore.Components.IComponent, Microsoft.AspNetCore.Components.IHandleAfterRender
type MediaComponentBase = class
    interface IComponent
    interface IHandleAfterRender
    interface IAsyncDisposable
Public MustInherit Class MediaComponentBase
Implements IAsyncDisposable, IComponent, IHandleAfterRender
Inheritance
MediaComponentBase
Derived
Implements

Constructors

Name Description
MediaComponentBase()

Properties

Name Description
AdditionalAttributes

Unmatched attributes applied to the rendered element.

Source

Gets or sets the media source.

Methods

Name Description
DisposeAsync()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.

Explicit Interface Implementations

Name Description
IComponent.Attach(RenderHandle)
IComponent.SetParametersAsync(ParameterView)
IHandleAfterRender.OnAfterRenderAsync()

Applies to