Write a property - 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 write a property you must have the GUID of the object and know the attribute name and type.

Table 1. Write a property .NET signature
Library method name WriteProperty
Description Write a property of an object.
Method signature void WriteProperty(Guid id, string attributeName, object newValue);
Method input parameters
  • id: GUID to identify the object to modify.
  • attributeName: name of the object's attribute.
  • newValue: the value used in the specified attribute.
Return value None
The following .NET C# code is an example of a successful property write:
Guid id = client.GetObjectIdentifier("siteName:naeName/Folder1.AV1");
	client.WriteProperty(id, "description", "This is an AV.");