Npgsql Api Docs |

# NpgsqlCopyIn Constructor (String, NpgsqlConnection)

Creates NpgsqlCommand to run given query upon Start(). Data for the requested COPY IN operation can then be written to CopyData stream followed by a call to End() or Cancel().

[Visual Basic]
Overloads Public Sub New( _
ByVal copyInQuery As String, _
ByVal conn As NpgsqlConnection _
)
[C#]
public NpgsqlCopyIn(
string copyInQuery,
NpgsqlConnection conn
);

#### See Also

NpgsqlCopyIn Class | Npgsql Namespace | NpgsqlCopyIn Constructor Overload List