Wombat.MamaMsg.tryVectorDateTime C# (CSharp) Method

tryVectorDateTime() public method

Try to get a vector of timestamps.
public tryVectorDateTime ( string name, ushort fid, System.DateTime &result ) : bool
name string
fid ushort
result System.DateTime
return bool
        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;
        }

Same methods

MamaMsg::tryVectorDateTime ( Wombat.MamaFieldDescriptor descriptor, System.DateTime &result ) : bool
MamaMsg