
**Inheritance:**
java.lang.Object

**All Implemented Interfaces:**
com.aspose.ms.System.Collections.ICollection
```
public class DataRowCollection implements System.Collections.ICollection<DataRow>
```

DataRowCollection class.
## Constructors

| Constructor | Description |
| --- | --- |
| [DataRowCollection(DataTable dataTable)](#DataRowCollection-com.aspose.email.DataTable-) | Constructor for DataRowCollection. |
## Methods

| Method | Description |
| --- | --- |
| [add(DataRow dataRow)](#add-com.aspose.email.DataRow-) | add. |
| [add(Object[] objects)](#add-java.lang.Object---) | add. |
| [copyTo(System.Array arg0, int arg1)](#copyTo-com.aspose.ms.System.Array-int-) | \{@inheritDoc\} |
| [equals(Object arg0)](#equals-java.lang.Object-) |  |
| [get(int i)](#get-int-) | get. |
| [getClass()](#getClass--) |  |
| [getSyncRoot()](#getSyncRoot--) | Gets Sync Root |
| [hashCode()](#hashCode--) |  |
| [isSynchronized()](#isSynchronized--) | Defines is Synchronized |
| [iterator()](#iterator--) | Gets Iterator |
| [notify()](#notify--) |  |
| [notifyAll()](#notifyAll--) |  |
| [size()](#size--) | Gets Size |
| [toString()](#toString--) |  |
| [wait()](#wait--) |  |
| [wait(long arg0)](#wait-long-) |  |
| [wait(long arg0, int arg1)](#wait-long-int-) |  |
### DataRowCollection(DataTable dataTable) {#DataRowCollection-com.aspose.email.DataTable-}
```
public DataRowCollection(DataTable dataTable)
```


Constructor for DataRowCollection.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| dataTable | [DataTable](../../com.aspose.email/datatable) | a [DataTable](../../com.aspose.email/datatable) object. |

### add(DataRow dataRow) {#add-com.aspose.email.DataRow-}
```
public void add(DataRow dataRow)
```


add.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| dataRow | [DataRow](../../com.aspose.email/datarow) | a [DataRow](../../com.aspose.email/datarow) object. |

### add(Object[] objects) {#add-java.lang.Object---}
```
public void add(Object[] objects)
```


add.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| objects | java.lang.Object[] | an array of java.lang.Object objects. |

### copyTo(System.Array arg0, int arg1) {#copyTo-com.aspose.ms.System.Array-int-}
```
public void copyTo(System.Array arg0, int arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | com.aspose.ms.System.Array |  |
| arg1 | int |  |

### equals(Object arg0) {#equals-java.lang.Object-}
```
public boolean equals(Object arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | java.lang.Object |  |

**Returns:**
boolean
### get(int i) {#get-int-}
```
public DataRow get(int i)
```


get.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| i | int | a int. |

**Returns:**
[DataRow](../../com.aspose.email/datarow) - a [DataRow](../../com.aspose.email/datarow) object.
### getClass() {#getClass--}
```
public final native Class<?> getClass()
```




**Returns:**
java.lang.Class<?>
### getSyncRoot() {#getSyncRoot--}
```
public Object getSyncRoot()
```


Gets Sync Root

**Returns:**
java.lang.Object - a object.
### hashCode() {#hashCode--}
```
public native int hashCode()
```




**Returns:**
int
### isSynchronized() {#isSynchronized--}
```
public boolean isSynchronized()
```


Defines is Synchronized

**Returns:**
boolean - a boolean.
### iterator() {#iterator--}
```
public System.Collections.IEnumerator<DataRow> iterator()
```


Gets Iterator

**Returns:**
com.aspose.ms.System.Collections.IEnumerator<com.aspose.email.DataRow> - an iterator.
### notify() {#notify--}
```
public final native void notify()
```




### notifyAll() {#notifyAll--}
```
public final native void notifyAll()
```




### size() {#size--}
```
public int size()
```


Gets Size

**Returns:**
int - an integer.
### toString() {#toString--}
```
public String toString()
```




**Returns:**
java.lang.String
### wait() {#wait--}
```
public final void wait()
```




### wait(long arg0) {#wait-long-}
```
public final native void wait(long arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |

### wait(long arg0, int arg1) {#wait-long-int-}
```
public final void wait(long arg0, int arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |
| arg1 | int |  |

