Get Method for Scripted Properties
A script-based implementation for a property requires the creation of a Get method to retrieve a property value from the repository database.
A Get method that you provide substitutes for the get functionality that is typically provided by the repository engine. When your script (rather than the repository engine) provides the implementation, you must handle the retrieval of a property value from the repository database.
For a Get method to succeed, the script body must contain a function with the same name as the property, and it must be prefixed with Get. For example, if the property name is ExtendedPrice, your script must include a function named GetExtendedPrice.
When executing the function, the repository engine first performs a lookup to find the property associated with the script. If the property cannot be found, a repository error is returned. Otherwise, the function returns S_OK.
In addition to a Get method, you must also define a corresponding Put method within the same script. For more information, see Put Method for Scripted Properties.