コード例 #1
0
        /// <summary>
        /// Set a DateTime value
        /// </summary>
        /// <param name="value">The new value to set.</param>
        public void SetDateTime(DateTime value)
        {
            valueType = (ushort)VarEnum.VT_FILETIME;

            PropVariant propVar;

            System.Runtime.InteropServices.ComTypes.FILETIME ft = DateTimeTotFileTime(value);
            Propsys.InitPropVariantFromFileTime(ref ft, out propVar);
            CopyData(propVar);
        }