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
-
- Implements
-
System.IDisposable
Constructors
View Source
MatrixCursor(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 Source
AddRow(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.
|
View Source
Dispose()
Releases all the resources used by the MatrixCursor class.
Declaration
View Source
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.
|
View Source
~MatrixCursor()
Destructor of the MatrixCursor class.
Declaration
protected ~MatrixCursor()
View Source
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
Exceptions
Type |
Condition |
System.ArgumentException |
Thrown in case of an invalid parameter.
|
View Source
GetColumnCount()
Gets the column count of the MatrixCursor.
Declaration
public int GetColumnCount()
Returns
View Source
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
Exceptions
Type |
Condition |
System.ArgumentException |
Thrown in case of an invalid parameter.
|
View Source
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
Exceptions
Type |
Condition |
System.ArgumentException |
Thrown in case of an invalid parameter.
|
View Source
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
Exceptions
Type |
Condition |
System.ArgumentException |
Thrown in case of an invalid parameter.
|
View Source
GetInt64Value(int)
Returns the value of the requested column as int64.
Declaration
public long GetInt64Value(int index)
Parameters
Type |
Name |
Description |
int |
index |
|
Returns
Exceptions
Type |
Condition |
System.ArgumentException |
Thrown in case of an invalid parameter.
|
View Source
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
Exceptions
Type |
Condition |
System.ArgumentException |
Thrown in case of an invalid parameter.
|
View Source
GetRowCount()
Gets the MatrixCursor's row count.
Declaration
public long GetRowCount()
Returns
View Source
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
Exceptions
Type |
Condition |
System.ArgumentException |
Thrown in case of an invalid parameter.
|
View Source
Next()
Move the MatrixCursor to the next row.
Declaration
Returns
View Source
Prev()
Move the MatrixCursor to the previous row.
Declaration
Returns
View Source
Reset()
Move the MatrixCursor to the first row.
Declaration
Returns
Implements
System.IDisposable