ComponentResource Class
A resource: a value of a resource type, referenced by handles. The representation of a resource implemented by the host is a .NET object; the representation of a resource implemented by a component is an integer of the component.
public sealed class ComponentResourceConstructors
| Name | Description |
|---|---|
| ComponentResource(ComponentResourceType, object?) | Creates a resource implemented by the host. |
ComponentResource(ComponentResourceType, object?)
ComponentValue.csCreates a resource implemented by the host.
public ComponentResource(ComponentResourceType type, object? representation)Parameters
typeComponentResourceType- The resource type, created by the host.
representationobject?- The representation of the resource.
Exceptions
ArgumentException- The resource type is not a host resource type.
Properties
| Name | Description |
|---|---|
| Representation | Gets the representation of a resource implemented by the host, or null. |
| Type | Gets the resource type. |
Representation
ComponentValue.csMethods
| Name | Description |
|---|---|
| ToString() | Returns a string that represents the current object. |