Query system registry about COM component created with MATLAB Compiler SDK
info = componentinfo
info = componentinfo(component_name
)
info = componentinfo(component_name
, major_revision_number
)
info = componentinfo(component_name
, major_revision_number
, minor_revision_number
)
component_name | MATLAB® string naming the COM component created by MATLAB Compiler SDK™. Names are case sensitive. If the argument is not supplied, information is returned on all installed components. |
major_revision_number | Component major revision number. If the argument is not supplied, information is returned on all major revisions. |
minor_revision_number | Component minor revision number. Default value is |
info = componentinfo
returns information
for all components installed on the system.
info = componentinfo(
returns
information for all revisions of component_name
)component_name
.
info = componentinfo(
returns
information for the most recent minor revision corresponding to component_name
, major_revision_number
)major_revision_number
of component_name
.
info = componentinfo(
returns
information for the specific major and minor version of component_name
, major_revision_number
, minor_revision_number
)component_name
.
The return value is an array of structures representing all the registry and type information needed to load and use the component.
When you supply a component name, major_revision_number
and
are
interpreted as shown next.minor_revision_number
Value | Information Returned |
---|---|
> 0 | Information on a specific major and minor revision. |
| Information on the most recent revision. When omitted, |
| Information on all versions. |
This table describes the fields in componentinfo
.
Registry Information Returned by componentinfo
Field | Description |
---|---|
Name | Component name. |
TypeLib | Component type library. |
LIBID | Component type library GUID. |
MajorRev | Major version number . |
MinorRev | Minor version number. |
FileName | Type library file name and path. Since all the compiler components have the type library bound into the DLL, this file name is the same as the DLL name and path. |
Interfaces | An array of structures defining all interface definitions in the type library. Each structure contains two fields:
|
CoClasses | An array of structures defining all COM classes in the component. Each structure contains these fields:
|
Function Call | Returned Information |
---|---|
Info = componentinfo | Information for all installed components. |
Info = componentinfo('mycomponent') | Information for all revisions of mycomponent . |
Info = componentinfo('mycomponent',1,0) | Information for revision 1.0 of |