Get children spaces of the given space - Metasys - LIT-12013522 - Software Application - Basic Services client library for .NET (and COM) - Metasys API - 4.2

Metasys REST Client for .NET and COM Developer Guide

Brand
Metasys
Product name
Basic Services client library for .NET (and COM)
Metasys API
Document type
API Reference Guide
Document number
LIT-12013522
Version
4.2
Revision date
2021-04-07
Language
English

To get the child objects of spaces use the GetSpaceChildren method.

To get the child objects of equipment use the GetObjects method. This method takes the GUID of the parent object, and the number of levels to retrieve. The default number of levels is one, or just the immediate children of the object.

For more information on the GetObjects method, see Get an object ID.

Table 1. Get children spaces of the given space .NET signature
Library method name GetSpaceChildren
Description Get children spaces of a given space.
Method signature IEnumerable<MetasysObject> GetSpaceChildren(Guid spaceId);
Method input parameters spaceId: GUID of the space object that the method targets and returns the child space objects.
Return value A collection of MetasysObject that represent equipment in a space.