コード例 #1
0
        /// <summary>
        /// Gets the native (interop) version of this object, except for
        /// <see cref="szIndexName"/> and <see cref="szKey"/>.
        /// </summary>
        /// <returns>The native (interop) version of this object.</returns>
        internal NATIVE_INDEXCREATE1 GetNativeIndexcreate1()
        {
            var native = new NATIVE_INDEXCREATE1();

            native.indexcreate          = this.GetNativeIndexcreate();
            native.indexcreate.cbStruct = checked ((uint)Marshal.SizeOf(typeof(NATIVE_INDEXCREATE1)));
            if (0 != this.cbKeyMost)
            {
                native.cbKeyMost          = checked ((uint)this.cbKeyMost);
                native.indexcreate.grbit |= unchecked ((uint)VistaGrbits.IndexKeyMost);
            }

            return(native);
        }
コード例 #2
0
 /// <summary>
 /// Sets only the output fields of the object from a NATIVE_INDEXCREATE1 struct,
 /// specifically <see cref="err"/>.
 /// </summary>
 /// <param name="value">
 /// The native indexcreate to set the values from.
 /// </param>
 internal void SetFromNativeIndexCreate(NATIVE_INDEXCREATE1 value)
 {
     this.SetFromNativeIndexCreate(value.indexcreate);
 }