ComponentImports Class
The imports of a component, by name: functions, instances (nested ComponentImports, or instances of other components), resource types, core modules and components. A name with a version (wasi:cli/stdout@0.2.3) also satisfies the imports of a compatible version (wasi:cli/stdout@0.2.0).
public sealed class ComponentImportsConstructors
| Name | Description |
|---|---|
| ComponentImports() |
ComponentImports()
WasmComponent.cspublic ComponentImports()No documentation is available.
Properties
| Name | Description |
|---|---|
| Names | Gets the names of the definitions. |
Names
WasmComponent.csMethods
| Name | Description |
|---|---|
| Define(string, ComponentFunction) | Defines a function. |
| Define(string, ComponentImports) | Defines an instance: the definitions of instance. |
| Define(string, ComponentType) | Defines a type, such as a resource type of the host. |
| Define(string, WasmComponent) | Defines a component. |
| Define(string, WasmComponentInstance) | Defines an instance of a component. |
| Define(string, WasmModule) | Defines a core module. |
| DefineAll(WasmComponentInstance) | Defines all the exports of an instance of a component, with their names. |
Define overloads
Define(string, ComponentFunction)
WasmComponent.csDefines a function.
public ComponentImports Define(string name, ComponentFunction function)Define(string, ComponentImports)
WasmComponent.csDefines an instance: the definitions of instance.
public ComponentImports Define(string name, ComponentImports instance)Define(string, ComponentType)
WasmComponent.csDefines a type, such as a resource type of the host.
public ComponentImports Define(string name, ComponentType type)Define(string, WasmComponent)
WasmComponent.csDefines a component.
public ComponentImports Define(string name, WasmComponent component)Define(string, WasmComponentInstance)
WasmComponent.csDefines an instance of a component.
public ComponentImports Define(string name, WasmComponentInstance instance)Define(string, WasmModule)
WasmComponent.csDefines a core module.
public ComponentImports Define(string name, WasmModule module)DefineAll(WasmComponentInstance)
WasmComponent.csDefines all the exports of an instance of a component, with their names.
public ComponentImports DefineAll(WasmComponentInstance instance)