View comments | RSS feed

cfproperty

Description

Defines components as complex types that are used for web services authoring. The attributes of this tag are exposed as component metadata and are subject to inheritance rules.

Category

Extensibility tags

Syntax

<cfproperty 
  name="name" 
  type="type" 
  ...>

See also

cfargument, cfcomponent, cffunction, cfinvoke, cfinvokeargument, cfobject, cfreturn

History

New in ColdFusion MX: This tag is new.

Attributes

Attribute Req/Opt Default Description
name
Required

A string; a property name. Must be a static value.
type
Optional

A string; a property type name; data type.
  • any
  • array
  • binary
  • boolean
  • date
  • guid
  • numeric
  • query
  • string
  • struct
  • uuid
  • variableName
  • a component name
If the value is not a recognized type, ColdFusion processes it as a component name

Usage

You must position cfproperty tags at the beginning of a component, above executable code and function definitions.

If at least one cfproperty tag that has a property within it is present within a component, the property metadata is present in the component metadata.

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

Version 6

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

Comments


pir2 said on Oct 10, 2002 at 3:38 PM :
If you use introspection with the cfcexplorer, you also see the attributes

Hint, Req. Implemented In, Default Value
hlichtin said on Mar 5, 2003 at 10:58 AM :
The following attributes are not documented. Their values are displayed when using introspection, but they have no effect on the component or web service behavior:

hint
displayname
default
required

The "Implemented in" filed of the introspection display is the name of the component.

 

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

Current page: http://livedocs.adobe.com/coldfusion/6/CFML_Reference/Tags-pt217.htm