getMetadata

Gets metadata (the methods, properties, and parameters of a
component) associated with an object that is deployed on the
CFML server.

getMetadata(Object) → returns any

Member Function Syntax

arr.getMetadata()

Argument Reference

Object any
Required

Examples
Sample code invoking the getMetadata function

CF 9+

writeDump(getMetadata(new Query()));

CF 2018+ Struct has a new key called dimensions and can also have a defined datatype. Supported datatypes are String, Numeric, Boolean, Date, Array, Struct, Query, Component, Binary, and Function.

arr = arrayNew['String'](1);
writeDump(arr.getMetadata());

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub