/// <summary> /// Set a DateTime vector /// </summary> /// <param name="value">The new value to set.</param> public void SetDateTimeVector(DateTime[] value) { System.Runtime.InteropServices.ComTypes.FILETIME[] fileTimeArr = new System.Runtime.InteropServices.ComTypes.FILETIME[value.Length]; for (int i = 0; i < value.Length; i++) { fileTimeArr[i] = DateTimeTotFileTime(value[i]); } PropVariant propVar; Propsys.InitPropVariantFromFileTimeVector(fileTimeArr, (uint)fileTimeArr.Length, out propVar); CopyData(propVar); }