Class SetObjectModel
Set an atomic property in the machine model. Make sure to acquire the read/write lock first! Returns true if the field could be updated
[RequiredPermissions(SbcPermissions.ObjectModelReadWrite)]
public class SetObjectModel : Command<bool>
- Inheritance
-
SetObjectModel
- Derived
- Inherited Members
Remarks
No third-party plugin should use this interface. It is solely intended for interal usage
Constructors
SetObjectModel()
public SetObjectModel()
Properties
PropertyPath
Path to the property in the machine model
public string PropertyPath { get; set; }
Property Value
- See Also
Value
String representation of the JSON value to set
public string Value { get; set; }
Property Value
Methods
UpdateFromJson(JsonElement)
Update this instance from a given JSON element
public override void UpdateFromJson(JsonElement jsonElement)
Parameters
jsonElementJsonElementElement to update this intance from
Remarks
This method is auto-generated
Exceptions
- JsonException
Failed to deserialize data
UpdateFromJsonReader(ref Utf8JsonReader)
Update this instance from a given JSON element
public override void UpdateFromJsonReader(ref Utf8JsonReader reader)
Parameters
readerUtf8JsonReaderReader to update this intance from
Remarks
This method is auto-generated
Exceptions
- JsonException
Failed to deserialize data