Show / Hide Table of Contents

Class NpgsqlRawCopyStream

Provides an API for a raw binary COPY operation, a high-performance data import/export mechanism to a PostgreSQL table. Initiated by BeginRawBinaryCopy(String)

Inheritance
System.Object
NpgsqlRawCopyStream
Implements
IDisposable
Namespace: Npgsql
Assembly: Npgsql.dll
Syntax
public sealed class NpgsqlRawCopyStream : Stream, ICancelable, IDisposable
Remarks

See http://www.postgresql.org/docs/current/static/sql-copy.html.

Properties

CanRead

Declaration
public override bool CanRead { get; }
Property Value
Type Description
System.Boolean

CanSeek

Declaration
public override bool CanSeek { get; }
Property Value
Type Description
System.Boolean

CanWrite

Declaration
public override bool CanWrite { get; }
Property Value
Type Description
System.Boolean

Length

Declaration
public override long Length { get; }
Property Value
Type Description
System.Int64

Position

Declaration
public override long Position { get; set; }
Property Value
Type Description
System.Int64

Methods

Cancel()

Cancels and terminates an ongoing operation. Any data already written will be discarded.

Declaration
public void Cancel()

Dispose(Boolean)

Declaration
protected override void Dispose(bool disposing)
Parameters
Type Name Description
System.Boolean disposing

Flush()

Declaration
public override void Flush()

Read(Byte[], Int32, Int32)

Declaration
public override int Read(byte[] buffer, int offset, int count)
Parameters
Type Name Description
System.Byte[] buffer
System.Int32 offset
System.Int32 count
Returns
Type Description
System.Int32

Seek(Int64, SeekOrigin)

Declaration
public override long Seek(long offset, SeekOrigin origin)
Parameters
Type Name Description
System.Int64 offset
SeekOrigin origin
Returns
Type Description
System.Int64

SetLength(Int64)

Declaration
public override void SetLength(long value)
Parameters
Type Name Description
System.Int64 value

Write(Byte[], Int32, Int32)

Declaration
public override void Write(byte[] buffer, int offset, int count)
Parameters
Type Name Description
System.Byte[] buffer
System.Int32 offset
System.Int32 count

Implements

IDisposable
Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX