コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="JET_OPERATIONCONTEXT"/>
        /// struct.
        /// </summary>
        /// <param name="native">The native <see cref="NATIVE_OPERATIONCONTEXT"/>
        /// object to be based upon.</param>
        internal JET_OPERATIONCONTEXT(ref NATIVE_OPERATIONCONTEXT native)
            : this()
        {
            this.UserID        = native.ulUserID;
            this.OperationID   = native.nOperationID;
            this.OperationType = native.nOperationType;
            this.ClientType    = native.nClientType;

            this.Flags = native.fFlags;
        }
コード例 #2
0
        /// <summary>
        /// Gets the native (interop) version of this object.
        /// </summary>
        /// <returns>
        /// The native (interop) version of this object.
        /// </returns>
        internal NATIVE_OPERATIONCONTEXT GetNativeOperationContext()
        {
            var native = new NATIVE_OPERATIONCONTEXT();

            native.ulUserID       = this.UserID;
            native.nOperationID   = this.OperationID;
            native.nOperationType = this.OperationType;
            native.nClientType    = this.ClientType;
            native.fFlags         = this.Flags;
            return(native);
        }