engiGetInstanceAttrTypeBN
engiGetInstanceAttrType(
instance,
sdaiGetAttrDefinition(
sdaiGetInstanceType(
instance
),
attributeName
)
);
Syntax
public const string enginedll = @"engine.dll"; [DllImport(enginedll, EntryPoint = "engiGetInstanceAttrTypeBN")] public static extern Int64 x86_engiGetInstanceAttrTypeBN(Int32 instance, string attributeName); [DllImport(enginedll, EntryPoint = "engiGetInstanceAttrTypeBN")] public static extern Int64 x64_engiGetInstanceAttrTypeBN(Int64 instance, string attributeName); public static Int64 engiGetInstanceAttrTypeBN(Int64 instance, string attributeName) { if (IntPtr.Size == 4) { var _result = x86_engiGetInstanceAttrTypeBN((Int32)instance, attributeName); return _result; } else { return x64_engiGetInstanceAttrTypeBN(instance, attributeName); } } [DllImport(enginedll, EntryPoint = "engiGetInstanceAttrTypeBN")] public static extern Int64 x86_engiGetInstanceAttrTypeBN(Int32 instance, byte[] attributeName); [DllImport(enginedll, EntryPoint = "engiGetInstanceAttrTypeBN")] public static extern Int64 x64_engiGetInstanceAttrTypeBN(Int64 instance, byte[] attributeName); public static Int64 engiGetInstanceAttrTypeBN(Int64 instance, byte[] attributeName) { if (IntPtr.Size == 4) { var _result = x86_engiGetInstanceAttrTypeBN((Int32)instance, attributeName); return _result; } else { return x64_engiGetInstanceAttrTypeBN(instance, attributeName); } }