예제 #1
0
        /// <summary>
        /// Closes the <see cref="T:System.Data.IDataReader"/> Object.
        /// </summary>
        public void Close()
        {
            MapiFactory.CloseQueryHandle(_queryHandle);
            MapiFactory.CloseConnectionHandle(_connHandle);

            IsClosed = true;
        }
예제 #2
0
        /// <summary>
        ///
        /// </summary>
        public void Close()
        {
            if (State == ConnectionState.Closed)
            {
                return;
            }

            MapiFactory.CloseConnectionHandle(_connection);

            State = ConnectionState.Closed;
        }