sdaiOpenModelBN
Attribute repository will be ignored, they are their because of backward compatibility.
A handle to the model will be returned, or 0 in case something went wrong.
Syntax
public const string enginedll = @"engine.dll"; [DllImport(enginedll, EntryPoint = "sdaiOpenModelBN")] public static extern Int64 x86_sdaiOpenModelBN(Int32 repository, string fileName, string schemaName); [DllImport(enginedll, EntryPoint = "sdaiOpenModelBN")] public static extern Int64 x64_sdaiOpenModelBN(Int64 repository, string fileName, string schemaName); public static Int64 sdaiOpenModelBN(Int64 repository, string fileName, string schemaName) { if (IntPtr.Size == 4) { var _result = x86_sdaiOpenModelBN((Int32)repository, fileName, schemaName); return _result; } else { return x64_sdaiOpenModelBN(repository, fileName, schemaName); } } [DllImport(enginedll, EntryPoint = "sdaiOpenModelBN")] public static extern Int64 x86_sdaiOpenModelBN(Int32 repository, string fileName, byte[] schemaName); [DllImport(enginedll, EntryPoint = "sdaiOpenModelBN")] public static extern Int64 x64_sdaiOpenModelBN(Int64 repository, string fileName, byte[] schemaName); public static Int64 sdaiOpenModelBN(Int64 repository, string fileName, byte[] schemaName) { if (IntPtr.Size == 4) { var _result = x86_sdaiOpenModelBN((Int32)repository, fileName, schemaName); return _result; } else { return x64_sdaiOpenModelBN(repository, fileName, schemaName); } } [DllImport(enginedll, EntryPoint = "sdaiOpenModelBN")] public static extern Int64 x86_sdaiOpenModelBN(Int32 repository, byte[] fileName, string schemaName); [DllImport(enginedll, EntryPoint = "sdaiOpenModelBN")] public static extern Int64 x64_sdaiOpenModelBN(Int64 repository, byte[] fileName, string schemaName); public static Int64 sdaiOpenModelBN(Int64 repository, byte[] fileName, string schemaName) { if (IntPtr.Size == 4) { var _result = x86_sdaiOpenModelBN((Int32)repository, fileName, schemaName); return _result; } else { return x64_sdaiOpenModelBN(repository, fileName, schemaName); } } [DllImport(enginedll, EntryPoint = "sdaiOpenModelBN")] public static extern Int64 x86_sdaiOpenModelBN(Int32 repository, byte[] fileName, byte[] schemaName); [DllImport(enginedll, EntryPoint = "sdaiOpenModelBN")] public static extern Int64 x64_sdaiOpenModelBN(Int64 repository, byte[] fileName, byte[] schemaName); public static Int64 sdaiOpenModelBN(Int64 repository, byte[] fileName, byte[] schemaName) { if (IntPtr.Size == 4) { var _result = x86_sdaiOpenModelBN((Int32)repository, fileName, schemaName); return _result; } else { return x64_sdaiOpenModelBN(repository, fileName, schemaName); } }