Beispiel #1
0
        /// <summary>
        /// Set a string vector
        /// </summary>
        /// <param name="value">The new value to set.</param>
        public void SetStringVector(string[] value)
        {
            PropVariant propVar;

            PropVariantNativeMethods.InitPropVariantFromStringVector(value, (uint)value.Length, out propVar);
            CopyData(propVar);
        }
        /// <summary>
        /// Set a string vector
        /// </summary>
        public PropVariant(string[] value)
        {
            if (value == null)
            {
                throw new ArgumentNullException(nameof(value));
            }

            PropVariantNativeMethods.InitPropVariantFromStringVector(value, (uint)value.Length, this);
        }