componentinfo
Query system registry about COM component created with MATLAB Compiler SDK
Syntax
info = componentinfo
info = componentinfo(component_name
)
info = componentinfo(component_name
, major_revision_number
, minor_revision_number
)
Arguments
component_name | MATLAB® character array 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 |
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 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.
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:
|
Examples
Function Call | Returned Information |
---|---|
Info = componentinfo | Information for all installed components. |
Info = componentinfo('mycomponent') | Information for all revisions of mycomponent . |
Info = componentinfo('mycomponent',2,3) | Information for revision 2.3 of |
Tips
Use the componentinfo
function to get information
(such as class name, program ID) to pass on to users of a component
that you create.
The componentinfo
function also provides
a record of changes made to the registry on your development machine.
This information might be useful for debugging if you run into problems.
Version History
Introduced before R2006a