sdaiGetStringAttrBN

This function is a specific version of sdaiGetAttrBN(..), where the valueType is sdaiSTRING. 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 sdaiGetStringAttrBN will transform into the following call

    char    * rValue = 0;
    sdaiGetAttr(
            instance,
            sdaiGetAttrDefinition(
                    sdaiGetInstanceType(
                            instance
                        ),
                    attributeName
                ),
            sdaiSTRING,
            &rValue
        );
    return  rValue;

Syntax

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

[DllImport(enginedll, EntryPoint = "sdaiGetStringAttrBN")]
public static extern IntPtr x86_sdaiGetStringAttrBN(Int32 instance, string attributeName);

[DllImport(enginedll, EntryPoint = "sdaiGetStringAttrBN")]
public static extern IntPtr x64_sdaiGetStringAttrBN(Int64 instance, string attributeName);

public static IntPtr sdaiGetStringAttrBN(Int64 instance, string attributeName)
		{
			if (IntPtr.Size == 4)
			{
				var _result = x86_sdaiGetStringAttrBN((Int32)instance, attributeName);
				return _result;
			}
			else
			{
				return x64_sdaiGetStringAttrBN(instance, attributeName);
			}
		}

[DllImport(enginedll, EntryPoint = "sdaiGetStringAttrBN")]
public static extern IntPtr x86_sdaiGetStringAttrBN(Int32 instance, byte[] attributeName);

[DllImport(enginedll, EntryPoint = "sdaiGetStringAttrBN")]
public static extern IntPtr x64_sdaiGetStringAttrBN(Int64 instance, byte[] attributeName);

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

Property instance

Size: 64 bit / 8 byte (value)
...

Property attributeName

Size: 64 bit / 8 byte (reference)
...