RemoveProperty

Removes property from model.

Return codes:
0 successful
1 argument property is invalid (wrong type or embedded property)
2 another property is dependent on the property to be deleted (for example through an inheritance relation)
3 an instance has a non-zero cardinality for the property to be deleted
4 undefined error

Syntax

public const string enginedll = @"engine.dll";

[DllImport(enginedll, EntryPoint = "RemoveProperty")]
public static extern Int64 RemoveProperty(Int64 rdfProperty);    

Property rdfProperty

Size: 64 bit / 8 byte (value)
This attribute represents a handle to the property, this can be either a datatype property (attribute), an object property (relation) or non-defined property. The handle will be static during the life-time of the model, when the model (or part of it) is saved and opened again, the handle will most probably be different.