public bool tryVectorDateTime(
string name,
ushort fid,
ref DateTime[] result)
{
EnsurePeerCreated();
IntPtr array = IntPtr.Zero;
uint size = 0;
int code = NativeMethods.mamaMsg_getVectorDateTime(nativeHandle, name, fid,ref array, ref size);
if (CheckResultCodeIgnoreNotFound(code) != MamaStatus.mamaStatus.MAMA_STATUS_OK)
{
return false;
}
long[] lVal = new long[size];
DateTime[] dtVal = new DateTime[size];
for (int i = 0; i < size; i++)
{
dtVal[i] = new DateTime(convertFromMamaDateTime ((ulong)lVal[i]));
}
result = dtVal;
return true;
}