Skip to content

User Guide: SDKs > .NET (Visual Studio) SDK > Invoking an Object Service > DataObject Class

DataObject Class

The DataObject class represents a data object in the Object Service. An instance of this class is required as a parameter in many methods of the ObjectService class.

Constructors

The DataObject class has one constructor.

DataObject

Creates an instance of the DataObject class.

Syntax

 DataObject(objectName, recordObject);

Parameters

Parameter Type Description
objectName string An instance of the DataObject class which contains data about the object and its data.
recordObject Dictionary An Dictionary object through which the record is sent.

Example


VoltMX.DataObject dataObject = new VoltMX.DataObject("objectName");
dataObject.AddField("field", "value");