Method GetData
GetData(string, int)
Retrieves the raw data of the specified item.
object GetData(string from, int iID)
Parameters
from
stringThe type of the item. Currently only “parameter” is supported.
iID
intThe ID of the item.
Returns
- object
An object array where each item is a byte. In case the specified item does not exist, a null reference is returned.
Examples
public static void Run(SLProtocol protocol)
{
object data = protocol.GetData("parameter", 10);
if (data != null)
{
object[] dataBytes = (object[])data;
byte[] bytes = new byte[dataBytes.Length];
Array.Copy(dataBytes, bytes, bytes.Length);
////...
}
else
{
////...
}
}
Remarks
- This is a wrapper method for the NotifyProtocol type 60 NT_GET_DATA call.