User Guide: SDKs > .NET (Visual Studio) SDK > Invoking an Object Service > ObjectService Class
ObjectService Class
The ObjectService class provides methods that act on the Volt MX Foundry endpoint, including basic CRUD and metadata functions .
Methods
The following methods are used by the ObjectService class.
Create Method
Creates an object in the Volt MX Foundry endpoint.
Syntax
Parameters
Parameter | Type | Description |
---|---|---|
dataObject | DataObject | An instance of the DataObject class which contains data about the object and its data. |
headers | Dictionary <string, string> | Key/value pairs of httpHeaders that are sent along with the network call. |
queryParams | Dictionary <string, string> | Key/value pairs of query params that are appended to the url while making a network call. |
Example
DeleteRecord Method
Deletes an object in the Volt MX Foundry endpoint.
Syntax
Parameters
Parameter | Type | Description |
---|---|---|
dataObject | DataObject | An instance of the DataObject class which contains data about the object and its data. |
headers (Optional) | Dictionary <string, string> | Key/value pairs of httpHeaders that are sent along with the network call. |
queryParams (Optional) | Dictionary <string, string> | Key/value pairs of query params that are appended to the url while making a network call. |
Example
GetMetadataOfAllObjects Method
Gets the metadata associated with the objects defined in the service from the server or local store.
Syntax
Parameters
Parameter | Type | Description |
---|---|---|
headers | Dictionary <string, string> | Key/value pairs of httpHeaders that are sent along with the network call. |
queryParams | Dictionary <string, string> | Key/value pairs of query params that are appended to the url while making a network call. To query data, the Odata Url is sent in this parameter. |
Example
GetMetadataOfObject Method
Gets the metadata associated with an object defined in the service from the server or local store.
Syntax
Parameters
Parameter | Type | Description |
---|---|---|
objectName | string | Object name in Volt MX Foundry |
headers | Dictionary <string, string> | Key/value pairs of httpHeaders that are sent along with the network call. |
queryParams | Dictionary <string, string> | Key/value pairs of query params that are appended to the url while making a network call. |
Example
PartialUpdate Method
Partially updates an object in the Volt MX Foundry endpoint.
Syntax
Parameters
Parameter | Type | Description |
---|---|---|
dataObject | DataObject | An instance of the DataObject class which contains data about the object and its data. |
headers | Dictionary <string, string> | Key/value pairs of httpHeaders that are sent along with the network call. |
queryParams | Dictionary <string, string> | Key/value pairs of query params that are appended to the url while making a network call. |
Example
Update Method
Updates an object in the Volt MX Foundry endpoint.
Syntax
Parameters
Parameter | Type | Description |
---|---|---|
dataObject | DataObject | An instance of the DataObject class which contains data about the object and its data. |
headers | Dictionary <string, string> | Key/value pairs of httpHeaders that are sent along with the network call. |
queryParams | Dictionary <string, string> | Key/value pairs of query params that are appended to the url while making a network call. |