Admin User     Feb,08 2017

CFproperty Tag in Coldfusion

CFPROPERTY tag mainly do only two things.

  1. Useful in validation for web service return types.
  2. Add metadata to components.

Generally, cfproperty is very less used - it does not provide any validation for checking datatypes or set any default values to any instance so its presence can be useless in most of the cases.

If you are using any webservice and any component type is returning and you want to check type of instances(data) returned from that component , then cfproperty can be helpful.

If you are willing to have meta-data based system then cfproperty can be again helpful.