You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

If you have already learned how to add a property or a sub-property to a resource object, you already know the basics of how these GetObject companion services work. As one might expect, there is an AddSubResource service available for this task. However, there is another service named AddSubResourceObject, which can also be used. Both will be explained below.

AddSubResource Service

The calling signature for the AddSubResource service is virtually identical to the AddSubProperty service and is called the same way. They key difference is this, if the AddSubProperty service is called using a parent property and sub-property name that already has a value, this value is replaced with the new value. Whereas with the AddSubResource service, each time it is called a new sub-resource object is added (or appended) to the existing array of sub-resources associated with the parent property. This different is explained in the What is a sub-resource? article.

  • No labels