Class MatrixCursor
Definition
- Namespace:
- Tizen.Applications.DataControl
- Assembly:
- Tizen.Applications.DataControl.dll
Represents the MatrixCursor class for the DataControl provider's matrix cursor.
public class MatrixCursor : IDisposable, ICursor
- Inheritance
-
objectMatrixCursor
- Implements
-
System.IDisposable
Constructors
View SourceMatrixCursor(string[], ColumnType[])
Initializes the MatrixCursor class with columnNames and columnTypes.
Declaration
public MatrixCursor(string[] columnNames, ColumnType[] columnTypes)
Parameters
Type | Name | Description |
---|---|---|
string[] | columnNames | The MatrixCursor's column name list. |
ColumnType[] | columnTypes | The MatrixCursor's column type list. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown in case of an invalid parameter. |
System.InvalidOperationException | Thrown in case of any internal error. |
Methods
View SourceAddRow(object[])
Adds a new row to the end with the given column values.
Declaration
public void AddRow(object[] columnValues)
Parameters
Type | Name | Description |
---|---|---|
object[] | columnValues | New column values |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown in case of an invalid parameter. |
Dispose()
Releases all the resources used by the MatrixCursor class.
Declaration
public void Dispose()
Dispose(bool)
Releases the unmanaged resources used by the MatrixCursor class specifying whether to perform a normal dispose operation.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing | true for a normal dispose operation; false to finalize the handle. |
~MatrixCursor()
Destructor of the MatrixCursor class.
Declaration
protected ~MatrixCursor()
GetBlobValue(int)
Returns the value of the requested column as a BLOB.
Declaration
public byte[] GetBlobValue(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index |
Returns
Type | Description |
---|---|
byte[] |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown in case of an invalid parameter. |
GetColumnCount()
Gets the column count of the MatrixCursor.
Declaration
public int GetColumnCount()
Returns
Type | Description |
---|---|
int |
GetColumnName(int)
Returns the column name at the given zero-based column index.
Declaration
public string GetColumnName(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The target column index. |
Returns
Type | Description |
---|---|
string |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown in case of an invalid parameter. |
GetColumnType(int)
Returns the column type at the given zero-based column index.
Declaration
public ColumnType GetColumnType(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | Target column index |
Returns
Type | Description |
---|---|
ColumnType |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown in case of an invalid parameter. |
GetDoubleValue(int)
Returns the value of the requested column as a double.
Declaration
public double GetDoubleValue(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index |
Returns
Type | Description |
---|---|
double |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown in case of an invalid parameter. |
GetInt64Value(int)
Returns the value of the requested column as int64.
Declaration
public long GetInt64Value(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index |
Returns
Type | Description |
---|---|
long |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown in case of an invalid parameter. |
GetIntValue(int)
Returns the value of the requested column as an integer.
Declaration
public int GetIntValue(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index |
Returns
Type | Description |
---|---|
int |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown in case of an invalid parameter. |
GetRowCount()
Gets the MatrixCursor's row count.
Declaration
public long GetRowCount()
Returns
Type | Description |
---|---|
long |
GetStringValue(int)
Returns the value of the requested column as a string.
Declaration
public string GetStringValue(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index |
Returns
Type | Description |
---|---|
string |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown in case of an invalid parameter. |
Next()
Move the MatrixCursor to the next row.
Declaration
public bool Next()
Returns
Type | Description |
---|---|
bool |
Prev()
Move the MatrixCursor to the previous row.
Declaration
public bool Prev()
Returns
Type | Description |
---|---|
bool |
Reset()
Move the MatrixCursor to the first row.
Declaration
public bool Reset()
Returns
Type | Description |
---|---|
bool |