Search Results for

    Show / Hide Table of Contents

    Class NpgsqlOperationInProgressException

    Thrown when trying to use a connection that is already busy performing some other operation. Provides information on the already-executing operation to help with debugging.

    Inheritance
    Object
    Exception
    SystemException
    ExternalException
    DbException
    NpgsqlException
    NpgsqlOperationInProgressException
    Implements
    ISerializable
    Inherited Members
    NpgsqlException.IsTransient
    NpgsqlException.BatchCommand
    ExternalException.ToString()
    ExternalException.ErrorCode
    Exception.GetBaseException()
    Exception.GetObjectData(SerializationInfo, StreamingContext)
    Exception.GetType()
    Exception.Data
    Exception.HelpLink
    Exception.HResult
    Exception.InnerException
    Exception.Message
    Exception.Source
    Exception.StackTrace
    Exception.TargetSite
    Exception.SerializeObjectState
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Namespace: Npgsql
    Assembly: Npgsql.dll
    Syntax
    public sealed class NpgsqlOperationInProgressException : NpgsqlException, ISerializable

    Constructors

    NpgsqlOperationInProgressException(NpgsqlCommand)

    Creates a new instance of NpgsqlOperationInProgressException.

    Declaration
    public NpgsqlOperationInProgressException(NpgsqlCommand command)
    Parameters
    Type Name Description
    NpgsqlCommand command

    A command which was in progress when the operation which triggered this exception was executed.

    Properties

    CommandInProgress

    If the connection is busy with another command, this will contain a reference to that command. Otherwise, if the connection if busy with another type of operation (e.g. COPY), contains null.

    Declaration
    public NpgsqlCommand CommandInProgress { get; }
    Property Value
    Type Description
    NpgsqlCommand

    Implements

    System.Runtime.Serialization.ISerializable
    In This Article
    Back to top © Copyright 2022 The Npgsql Development Team