InterSystems IRIS Data Platform 2019.2  /  Class Definition Reference  /  Class Definitions

Class Definition Reference
Property Definitions
Previous section           Next section
InterSystems: The power behind what matters   

Describes the structure of a property definition. Note that a relationship is a property.
A property contains information relevant to an instance of a class. You can add property definitions to object classes. They are not meaningful in other kinds of classes.
A property definition has the following structure:
/// description 
Property name As classname (parameter_list) [ keyword_list ] ;
Or (for a list property):
/// description 
Property name As List Of classname (parameter_list) [ keyword_list ] ;
Or (for an array property):
/// description 
Property name As Array Of classname (parameter_list) [ keyword_list ] ;
Or (for a relationship property):
/// description 
Relationship name As classname [ keyword_list ] ;
/// Person's Social Security number. 
Property SSN As %String(PATTERN = "3N1""-""2N1""-""4N") [ Required  ]; 
See Also

Previous section           Next section
Send us comments on this page
View this book as PDF   |  Download all PDFs
Copyright © 1997-2019 InterSystems Corporation, Cambridge, MA
Content Date/Time: 2019-09-20 05:47:55