engiGetAttrOptionalBN

This call is deprecated, please use call engiIsAttrOptionalBN(..) instead. Technically engiGetAttrOptionalBN will transform into the following call engiGetAttrOptional( sdaiGetAttrDefinition( entity, attributeName ) );

Syntax

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

[DllImport(enginedll, EntryPoint = "engiGetAttrOptionalBN")]
public static extern Int32 x86_engiGetAttrOptionalBN(Int32 entity, string attributeName);

[DllImport(enginedll, EntryPoint = "engiGetAttrOptionalBN")]
public static extern Int32 x64_engiGetAttrOptionalBN(Int64 entity, string attributeName);

public static Int32 engiGetAttrOptionalBN(Int64 entity, string attributeName)
		{
			if (IntPtr.Size == 4)
			{
				var _result = x86_engiGetAttrOptionalBN((Int32)entity, attributeName);
				return _result;
			}
			else
			{
				return x64_engiGetAttrOptionalBN(entity, attributeName);
			}
		}

[DllImport(enginedll, EntryPoint = "engiGetAttrOptionalBN")]
public static extern Int32 x86_engiGetAttrOptionalBN(Int32 entity, byte[] attributeName);

[DllImport(enginedll, EntryPoint = "engiGetAttrOptionalBN")]
public static extern Int32 x64_engiGetAttrOptionalBN(Int64 entity, byte[] attributeName);

public static Int32 engiGetAttrOptionalBN(Int64 entity, byte[] attributeName)
		{
			if (IntPtr.Size == 4)
			{
				var _result = x86_engiGetAttrOptionalBN((Int32)entity, attributeName);
				return _result;
			}
			else
			{
				return x64_engiGetAttrOptionalBN(entity, attributeName);
			}
		}    

Property entity

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

Property attributeName

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