Skip Headers
Oracle® Data Provider for .NET Developer's Guide
11g Release 2 (11.2.0.3)

Part Number E23174-02
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
PDF · Mobi · ePub

OracleRowsCopiedEventArgs Class

The OracleRowsCopiedEventArgs class represents the set of arguments passed as part of event data for the OracleRowsCopied event.

Class Inheritance

System.Object

  System.EventArgs

    System.OracleRowsCopiedEventArgs

Declaration

// C#
public class OracleRowsCopiedEventArgs : EventArgs

Thread Safety

All public static methods are thread-safe, although instance methods do not guarantee thread safety.

Remarks

Each time the number of rows represented by the OracleBulkCopy.NotifyAfter property is processed, the OracleBulkCopy.OracleRowsCopied event is raised, providing an OracleRowsCopiedEventArgs object that stores the event data.


OracleRowsCopiedEventArgs Members

OracleRowsCopiedEventArgs members are listed in the following tables.

OracleRowsCopiedEventArgs Constructors

OracleRowsCopiedEventArgs constructors are listed in Table 17-16.

Table 17-16 OracleRowsCopiedEventArgs Constructors

Constructor Description

OracleRowsCopiedEventArgs Constructors.

OracleRowsCopiedEventArgs creates new instances of the OracleRowsCopiedEventArgs class


OracleRowsCopiedEventArgs Properties

OracleRowsCopiedEventArgs properties are listed in Table 17-17.

Table 17-17 OracleRowsCopiedEventArgs Properties

Property Description

Abort

Retrieves or sets a value that indicates whether or not the bulk copy operation is aborted

RowsCopied

Retrieves a value that represents the number of rows copied during the current bulk copy operation



OracleRowsCopiedEventArgs Constructors

OracleRowsCopiedEventArgs creates new instances of the OracleRowsCopiedEventArgs class.

Overload List:

OracleRowsCopiedEventArgs(long)

This constructor creates a new instance of the OracleRowsCopiedEventArgs object.

Declaration

// C#
public OracleRowsCopiedEventArgs(long rowsCopied);

Parameters

Remarks

The value in the rowsCopied parameter is reset by each call to a WriteToServer method.


OracleRowsCopiedEventArgs Properties

OracleRowsCopiedEventArgs properties are listed in Table 17-18.

Table 17-18 OracleRowsCopiedEventArgs Properties

Property Description

Abort

Retrieves or sets a value that indicates whether or not the bulk copy operation is aborted

RowsCopied

Retrieves a value that represents the number of rows copied during the current bulk copy operation


Abort

This property retrieves or sets a value that indicates whether or not the bulk copy operation is aborted.

Declaration

// C#
public bool Abort{get; set;}

Property Value

Returns true if the bulk copy operation is to be aborted; otherwise, returns false.

Remarks

Set the Abort property to true to cancel the bulk copy operation.

If the Close method is called from OracleRowsCopied, an exception is generated, and the OracleBulkCopy object state does not change.

If the application does not create a transaction, the internal transaction corresponding to the current batch is automatically rolled back. However, changes related to previous batches within the bulk copy operation are retained, because the transactions in those batches are committed. This case is applicable only when UseInternalTransaction bulk copy option is chosen.

RowsCopied

This property retrieves a value that represents the number of rows copied during the current bulk copy operation.

Declaration

// C#
public long RowsCopied {get;}

Property Value

An Int64 value that returns the number of rows copied.

Remarks

The value in the RowsCopied property is reset by each call to a WriteToServer method.