Create a compound record reader. This creates a compound record reader. It is created with a single parent table. Child tables must be added using the addChildTable method.
Namespace: NetricsServerInterface
Assembly: NetricsServerInterface (in NetricsServerInterface.dll)
Syntax
| Visual Basic (Declaration) |
|---|
| Public Sub New( _ ByVal parent_tbl_name As String, _ ByVal parent_recs As NetricsTableRecSrc, _ ByVal return_orphans As Boolean _ ) |
| C# |
|---|
| public NetricsCompoundReader( string parent_tbl_name, NetricsTableRecSrc parent_recs, bool return_orphans ) |
| C++ |
|---|
| public: NetricsCompoundReader( String parent_tbl_name, NetricsTableRecSrc parent_recs, bool return_orphans ) sealed |
| J# |
|---|
| public NetricsCompoundReader( string parent_tbl_name, NetricsTableRecSrc parent_recs, bool return_orphans ) |
| JScript |
|---|
| public function NetricsCompoundReader( parent_tbl_name : String, parent_recs : NetricsTableRecSrc, return_orphans : bool ) |
Parameters
- parent_tbl_name
- The name of the parent table.
- parent_recs
- A record source that provides parent records. The records MUST be provided in sort order of the record keys.
- return_orphans
- If true, orphan child records are returned as a NetricsCompoundRecord with no children. If false, orphan child records are quietly skipped.
Exceptions
| Exception Type | Condition |
|---|---|
| ArgumentException | Thrown if any argument is null or the parent table name is empty (zero length). |
| NetricsRecSrcException | Thrown if there is an error reading the first parent record. |