engiGetAttrTypeBN
engiGetAttrType(
sdaiGetAttrDefinition(
entity,
attributeName
)
);
Syntax
public const string enginedll = @"engine.dll"; [DllImport(enginedll, EntryPoint = "engiGetAttrTypeBN")] public static extern Int64 x86_engiGetAttrTypeBN(Int32 entity, string attributeName); [DllImport(enginedll, EntryPoint = "engiGetAttrTypeBN")] public static extern Int64 x64_engiGetAttrTypeBN(Int64 entity, string attributeName); public static Int64 engiGetAttrTypeBN(Int64 entity, string attributeName) { if (IntPtr.Size == 4) { var _result = x86_engiGetAttrTypeBN((Int32)entity, attributeName); return _result; } else { return x64_engiGetAttrTypeBN(entity, attributeName); } } [DllImport(enginedll, EntryPoint = "engiGetAttrTypeBN")] public static extern Int64 x86_engiGetAttrTypeBN(Int32 entity, byte[] attributeName); [DllImport(enginedll, EntryPoint = "engiGetAttrTypeBN")] public static extern Int64 x64_engiGetAttrTypeBN(Int64 entity, byte[] attributeName); public static Int64 engiGetAttrTypeBN(Int64 entity, byte[] attributeName) { if (IntPtr.Size == 4) { var _result = x86_engiGetAttrTypeBN((Int32)entity, attributeName); return _result; } else { return x64_engiGetAttrTypeBN(entity, attributeName); } }