GetPropertyByNameAndType

Returns a handle to the dataTypeProperty as stored inside with the requested propertyType. When the property does not exist yet and the name is unique the property will be created on the fly and the handle will be returned. When the name is not unique and given to a property of a different type, a class or instance 0 will be returned.

The difference towards GetPropertyByName is that this call can create a new property on-the-fly for a type of your selection.

Syntax

//   Visual Studio for Windows
public:
__int64 __declspec(dllexport) __stdcall GetPropertyByNameAndType(
            __int64        model,
            const char      * rdfPropertyName,
            __int64        rdfPropertyType
        );

//   Linux, OS-X and non-Visual Studio Windows solutions
public:
int64_t GetPropertyByNameAndType(
            int64_t        model,
            const char      * rdfPropertyName,
            int64_t        rdfPropertyType
        );    

Property model

Size: 64 bit / 8 byte (value)
...

Property rdfPropertyName

Size: 64 bit / 8 byte (reference)
the name of the rdfProperty

Property rdfPropertyType

Size: 64 bit / 8 byte (value)
the type of the rdfProperty, i.e. is it an ObjectProperty (relation) or a DatatypeProperty, in the later case also subdivision towards Boolean, Double, Integer or String.