|
|
Contains data values defined by a given schema definition. May be traversed manually or accessed via NET DLR dynamic typing.
Namespace: Autodesk.Navisworks.Api.Schema
Assembly: Autodesk.Navisworks.Api (in Autodesk.Navisworks.Api.dll)
Syntax
| Visual Basic |
|---|
Public Class SchemaData _ Inherits NativeHandle _ Implements IHasDynamicProperties, IStructuralEquatable, IStructuralComparable |
| C# |
|---|
public class SchemaData : NativeHandle, IHasDynamicProperties, IStructuralEquatable, IStructuralComparable |
| Visual C++ |
|---|
public ref class SchemaData : public NativeHandle, IHasDynamicProperties, IStructuralEquatable, IStructuralComparable |
Remarks
If schema definitions were NET classes, SchemaData objects would be akin to actual objects created from those classes. They contain an efficient representation of data described by their associated definition, enabling separation of data storage from definition.
There are two approaches to querying SchemaData objects.
In the first case, one queries associated fields on schema definitions and casts them to the correct type to query further into the definition. For example, one field member might be a StructField with its own set of sub-fields. Using the known layout of fields, one can then obtain an accessor from SchemaData to query values associated with each field.
The alternative is to use the SchemaData object dynamically, and directly access each field as one would a real struct, array, and so on.
Inheritance Hierarchy
System..::..Object
Autodesk.Navisworks.Api..::..NativeHandle
Autodesk.Navisworks.Api.Schema..::..SchemaData
Autodesk.Navisworks.Api..::..NativeHandle
Autodesk.Navisworks.Api.Schema..::..SchemaData