View comments | RSS feed
Contents > Developing ColdFusion MX Applications > Building and Using ColdFusion Components > Using ColdFusion components > Introspection: getting information about components Using the GetMetaData function PreviousNext

Using the GetMetaData function

The CFML GetMetaData function returns a structure containing all the metadata of a CFC instance. This structure contains substantially more data about the CFC than cfdump shows, and includes the following information:

For information on how to specify CFC metadata, including how to use component tags and how to specify metadata-only attributes, see Documenting CFCs.


Contents > Developing ColdFusion MX Applications > Building and Using ColdFusion Components > Using ColdFusion components > Introspection: getting information about components Using the GetMetaData function PreviousNext

ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting

Version 6.1

Comments are no longer accepted for ColdFusion MX 6.1. ColdFusion 8 is the current version.

Comments


TacoBell said on Jul 12, 2004 at 6:35 PM :
Personally I think the tag would have more value if it returned a named array with methods/properties/etc. instead of an indexed array.. To get at any info you need to loop over the whole array to get at the info you are after.

For example;
getMetaData(obj).functions["myFunction"]
Is easier and quicker to access than
loop over getMetaData(obj)
if getMetaData(obj).functions[ i ] IS "myFunction"
do this and that...

my 2c

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/coldfusion/6.1/htmldocs/buildi34.htm