Npgsql API Documentation |

# NpgsqlCommand Class

[This is preliminary documentation and subject to change.]

Represents a SQL statement or function (stored procedure) to execute against a PostgreSQL database. This class cannot be inherited.

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

System.Object
MarshalByRefObject
Component
NpgsqlCommand

[Visual Basic]
<ToolboxItem(ToolboxItemType=System.Drawing.Design.ToolboxItem, ToolboxItemTypeName="System.Drawing.Design.ToolboxItem, System.Drawing, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")>
<ToolboxBitmap>
<DesignerCategory(Category="Component")>
NotInheritable Public Class NpgsqlCommand
Inherits Component
Implements
[C#]
[ToolboxItem(ToolboxItemType=System.Drawing.Design.ToolboxItem, ToolboxItemTypeName="System.Drawing.Design.ToolboxItem, System.Drawing, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[ToolboxBitmap]
[DesignerCategory(Category="Component")]
public sealed class NpgsqlCommand : Component, IDbCommand

#### 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

NpgsqlCommand Members | Npgsql Namespace