Npgsql Api Docs |

# NpgsqlConnection Class

This class represents a connection to a PostgreSQL server.

For a list of all members of this type, see NpgsqlConnection Members.

System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.Data.Common.DbConnection
Npgsql.NpgsqlConnection

[Visual Basic]
NotInheritable Public Class NpgsqlConnection
Inherits DbConnection
Implements ICloneable
[C#]
public sealed class NpgsqlConnection : DbConnection, ICloneable

#### Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

#### Requirements

Namespace: Npgsql

Assembly: Npgsql (in Npgsql.dll)

#### See Also

NpgsqlConnection Members | Npgsql Namespace