| Oracle® Data Provider for .NET Developer's Guide 11g Release 1 (11.1.0.6.20) E10927-01 |
|
![]() Previous |
![]() Next |
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.
Example
// C#
OracleRowsCopiedEventArgs members are listed in the following tables.
OracleRowsCopiedEventArgs Constructors
OracleRowsCopiedEventArgs constructors are listed in Table 15-16.
Table 15-16 OracleRowsCopiedEventArgs Constructors
| Constructor | Description |
|---|---|
|
|
OracleRowsCopiedEventArgs Properties
OracleRowsCopiedEventArgs properties are listed in Table 15-17.
Table 15-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.
Overload List:
OracleRowsCopiedEventArgs(long)
This constructor creates a new instance of the OracleRowsCopiedEventArgs object.
This constructor creates a new instance of the OracleRowsCopiedEventArgs object.
Declaration
// C#
public OracleRowsCopiedEventArgs(long rowsCopied);
Parameters
rowsCopied
An Int64 value that indicates the number of rows copied during the current bulk copy operation.
Remarks
The value in the rowsCopied parameter is reset by each call to a WriteToServer method.
OracleRowsCopiedEventArgs properties are listed in Table 15-18.
Table 15-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 |
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.
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.