private InitPropVariantFromFileTimeVector ( [ prgft, uint cElems, [ ppropvar ) : void | ||
prgft | [ | |
cElems | uint | |
ppropvar | [ | |
return | void |
internal static extern void InitPropVariantFromFileTimeVector([In, Out] System.Runtime.InteropServices.ComTypes.FILETIME[] prgft, uint cElems, [Out] PropVariant ppropvar);
/// <summary> /// Set a DateTime vector /// </summary> public PropVariant(DateTime[] value) { if (value == null) { throw new ArgumentNullException("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] = DateTimeToFileTime(value[i]); } PropVariantNativeMethods.InitPropVariantFromFileTimeVector(fileTimeArr, (uint)fileTimeArr.Length, this); }