Target framework
Meziantou.Framework API reference Meziantou.Framework.WasmEngine.Components
ComponentResourceType Class Namespace Meziantou.Framework.WasmEngine.Components Assembly Meziantou.Framework.WasmEngine.dll Package Meziantou.Framework.WasmEngine 1.0.1 Source ComponentTypes.cs Available in package assets net10.0 net11.0 A resource type: an abstract type whose values are handles (ComponentOwnType , ComponentBorrowType ). Resource types are compared by identity: each resource type definition of a component instance, and each resource type created by the host, is a distinct type.
Inheritance ComponentType → ComponentResourceTypeConstructors Creates a resource type implemented by the host: the representation of its resources is a .NET object.
Parameters name string?The name of the type, for the diagnostics. destructor Action<ComponentResource>?The action called when the last owned handle of a resource is dropped, or null. Properties Name Description IsHostResource Gets whether the resources of the type are implemented by the host. Name Gets the name of the type, for the diagnostics.
Gets whether the resources of the type are implemented by the host.
public bool IsHostResource { get ; }Gets the name of the type, for the diagnostics.
Methods Name Description ToString() Returns a string that represents the current object.
Returns a string that represents the current object.
public override string ToString()Returns string A string that represents the current object.