componentinfo
Query system registry about component created with MATLAB Compiler
Syntax
info = componentinfo
info = componentinfo(component_name
)
info = componentinfo(component_name
, major_revision_number
)
info = componentinfo(component_name
, major_revision_number
, minor_revision_number
)
Arguments
component_name | MATLAB® character vector or string scalar providing the name of a MATLAB Compiler™ component. Names are case sensitive. If this argument is not supplied, the function returns information on all installed components. |
major_revision_number | Component major revision number. If this argument is not supplied, the function returns information on all major revisions. |
minor_revision_number | Component minor revision number. Default value
is |
Description
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 below. minor_revision_number
Value | Information Returned |
---|---|
> 0 | Information on a specific major and minor revision |
| Information on the most recent revision. When omitted,minor_revision_number is
assumed to be equal to 0 . |
| Information on all versions |
Note
Although properties and events may appear in the output for componentinfo
,
they are not supported by MATLAB
Compiler SDK™.
Registry Information
The information about a component has the fields shown in the following table.
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 MATLAB 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:
|
Registry Information Returned by componentinfo (Continued)
CoClasses | An array of structures defining all COM classes in the component. Each structure contains these fields:
|
Examples
Function Call | Returns |
---|---|
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 |
Version History
Introduced in R2015a