sdaiGetAggregationAttrBN

This function is a specific version of sdaiGetAttrBN(..), where the valueType is sdaiAGGR. This call can be useful in case of specific programming languages that cannot map towards sdaiGetAttrBN(..) directly, this function is useless for languages as C, C++, C#, JAVA, VB.NET, Delphi and similar as they are able to map sdaiGetAttrBN(..) directly. Technically sdaiGetAggregationAttrBN will transform into the following call

    SdaiAggr    aggr = 0;
    sdaiGetAttr(
            instance,
            sdaiGetAttrDefinition(
                    sdaiGetInstanceType(
                            instance
                        ),
                    attributeName
                ),
            sdaiAGGR,
            &aggr
        );
    return  aggr;

Syntax

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

[DllImport(enginedll, EntryPoint = "sdaiGetAggregationAttrBN")]
public static extern Int32 x86_sdaiGetAggregationAttrBN(Int32 instance, string attributeName);

[DllImport(enginedll, EntryPoint = "sdaiGetAggregationAttrBN")]
public static extern Int32 x64_sdaiGetAggregationAttrBN(Int64 instance, string attributeName);

public static Int32 sdaiGetAggregationAttrBN(Int64 instance, string attributeName)
		{
			if (IntPtr.Size == 4)
			{
				var _result = x86_sdaiGetAggregationAttrBN((Int32)instance, attributeName);
				return _result;
			}
			else
			{
				return x64_sdaiGetAggregationAttrBN(instance, attributeName);
			}
		}

[DllImport(enginedll, EntryPoint = "sdaiGetAggregationAttrBN")]
public static extern Int32 x86_sdaiGetAggregationAttrBN(Int32 instance, byte[] attributeName);

[DllImport(enginedll, EntryPoint = "sdaiGetAggregationAttrBN")]
public static extern Int32 x64_sdaiGetAggregationAttrBN(Int64 instance, byte[] attributeName);

public static Int32 sdaiGetAggregationAttrBN(Int64 instance, byte[] attributeName)
		{
			if (IntPtr.Size == 4)
			{
				var _result = x86_sdaiGetAggregationAttrBN((Int32)instance, attributeName);
				return _result;
			}
			else
			{
				return x64_sdaiGetAggregationAttrBN(instance, attributeName);
			}
		}    

Property instance

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

Property attributeName

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