Oracle® Data Provider for .NET Developer's Guide 11g Release 2 (11.2.0.3) Part Number E23174-02 |
|
|
PDF · Mobi · ePub |
The OracleRowsCopiedEventArgs
class represents the set of arguments passed as part of event data for the OracleRowsCopied
event.
System.Object
System.EventArgs
System.OracleRowsCopiedEventArgs
// C# public class OracleRowsCopiedEventArgs : EventArgs
All public static methods are thread-safe, although instance methods do not guarantee thread safety.
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.
See Also:
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 Properties
OracleRowsCopiedEventArgs
properties are listed in Table 17-17.
Table 17-17 OracleRowsCopiedEventArgs Properties
Property | Description |
---|---|
Retrieves or sets a value that indicates whether or not the bulk copy operation is aborted |
|
Retrieves a value that represents the number of rows copied during the current bulk copy operation |
OracleRowsCopiedEventArgs
creates new instances of the OracleRowsCopiedEventArgs
class.
OracleRowsCopiedEventArgs(long)
This constructor creates a new instance of the OracleRowsCopiedEventArgs
object.
See Also:
This constructor creates a new instance of the OracleRowsCopiedEventArgs
object.
// C#
public OracleRowsCopiedEventArgs(long rowsCopied);
rowsCopied
An Int64
value that indicates the number of rows copied during the current bulk copy operation.
The value in the rowsCopied
parameter is reset by each call to a WriteToServer
method.
See Also:
OracleRowsCopiedEventArgs
properties are listed in Table 17-18.
Table 17-18 OracleRowsCopiedEventArgs Properties
Property | Description |
---|---|
Retrieves or sets a value that indicates whether or not the bulk copy operation is aborted |
|
Retrieves a value that represents the number of rows copied during the current bulk copy operation |
See Also:
This property retrieves or sets a value that indicates whether or not the bulk copy operation is aborted.
// C# public bool Abort{get; set;}
Returns true
if the bulk copy operation is to be aborted; otherwise, returns false
.
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.
See Also:
This property retrieves a value that represents the number of rows copied during the current bulk copy operation.
// C# public long RowsCopied {get;}
An Int64
value that returns the number of rows copied.
The value in the RowsCopied
property is reset by each call to a WriteToServer
method.