docs.intersystems.com
Home / Class Definition Reference / Class Keywords / PropertyClass

Class Definition Reference
PropertyClass
Previous section           Next section
InterSystems: The power behind what matters   
Search:  


Adds property parameters to this class.
Usage
To add property parameters to this class, use the following syntax:
Class PropClass.MyClass Extends %RegisteredObject [ PropertyClass = PropClass.MyPropertyClass ] { //class members }
Where propertyclasslist is one of the following:
Details
If you need to add custom property parameters, do the following:
  1. Define and compile a class that defines one or more class parameters. For example:
    Class PropClass.MyPropertyClass
    {
    
    Parameter MYPARM As %String = "XYZ";
    
    }
    These class parameters become property parameters in the next step.
  2. In the class that defines the properties, specify the PropertyClass keyword.
Effect on Subclasses
Subclasses inherit the custom behavior added by this keyword. If the subclass specifies a value for the keyword, that value specifies an additional class or classes that specify parameters for properties of this class.
See Also


Previous section           Next section
View this book as PDF   |  Download all PDFs
Copyright © 1997-2019 InterSystems Corporation, Cambridge, MA
Content Date/Time: 2019-04-23 15:16:11