GetExternalReferenceDataId

Returns a key id can be used in calls to Get/SetExternalReferenceData to keep application data on GK entities During model lifetime the id is the same for given string and different for different strings Returns 0 on error

Syntax

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

[DllImport(enginedll, EntryPoint = "GetExternalReferenceDataId")]
public static extern Int64 GetExternalReferenceDataId(Int64 model, string uniqueAppName);

[DllImport(enginedll, EntryPoint = "GetExternalReferenceDataId")]
public static extern Int64 GetExternalReferenceDataId(Int64 model, byte[] uniqueAppName);    

Property model

Size: 64 bit / 8 byte (value)
The handle to the model. The model handle is static during its existance. Several models can be opened simultaniously within one session. Different models are always independent, threads are allowed to be running on different models simultaniously.

Property uniqueAppName

Size: 32 bit / 4 byte (reference)
...