| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB Builder NE |
| Contents | Index |
| Learn more about MATLAB Builder NE |
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 Builder NE. 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 0. |
info = componentinfo returns information for all components installed on the system.
info = componentinfo(component_name) returns information for all revisions of component_name.
info = componentinfo(component_name, major_revision_number) returns information for the most recent minor revision corresponding to major_revision_number of component_name.
info = componentinfo(component_name, major_revision_number, minor_revision_number) returns information for the specific major and minor version of 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 minor_revision_number are interpreted as shown next.
| Value | Information Returned |
|---|---|
| > 0 | Information on a specific major and minor revision. |
0 | Information on the most recent revision. When omitted, minor_revision_number is assumed to be 0. |
< 0 | 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 builder 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:
|
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.
| 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 mycomponent. |
![]() | Function Reference | deploytool | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |