Definition
- Namespace:
- Tizen.Applications.DataControl
- Assembly:
- Tizen.Applications.DataControl.dll
- API Level:
- 3
Represents the MatrixCursor class for the DataControl provider's matrix cursor.
public class MatrixCursor : IDisposable, ICursor
- Inheritance
-
System.Object
MatrixCursor
- 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 |
System.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.
|
API Level: 3
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 |
System.Object[] |
columnValues |
New column values
|
Exceptions
Type |
Condition |
System.ArgumentException |
Thrown in case of an invalid parameter.
|
API Level: 3
View Source
Dispose()
Releases all the resources used by the MatrixCursor class.
Declaration
API Level: 3
View Source
Dispose(Boolean)
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 |
System.Boolean |
disposing |
true for a normal dispose operation; false to finalize the handle.
|
API Level: 3
View Source
Finalize()
Destructor of the MatrixCursor class.
Declaration
protected void Finalize()
View Source
GetBlobValue(Int32)
Returns the value of the requested column as a BLOB.
Declaration
public byte[] GetBlobValue(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
Exceptions
Type |
Condition |
System.ArgumentException |
Thrown in case of an invalid parameter.
|
API Level: 3
View Source
GetColumnCount()
Gets the column count of the MatrixCursor.
Declaration
public int GetColumnCount()
Returns
Type |
Description |
System.Int32 |
|
API Level: 3
View Source
GetColumnName(Int32)
Returns the column name at the given zero-based column index.
Declaration
public string GetColumnName(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
The target column index.
|
Returns
Type |
Description |
System.String |
|
Exceptions
Type |
Condition |
System.ArgumentException |
Thrown in case of an invalid parameter.
|
API Level: 3
View Source
GetColumnType(Int32)
Returns the column type at the given zero-based column index.
Declaration
public ColumnType GetColumnType(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
Target column index
|
Returns
Exceptions
Type |
Condition |
System.ArgumentException |
Thrown in case of an invalid parameter.
|
API Level: 3
View Source
GetDoubleValue(Int32)
Returns the value of the requested column as a double.
Declaration
public double GetDoubleValue(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
Type |
Description |
System.Double |
|
Exceptions
Type |
Condition |
System.ArgumentException |
Thrown in case of an invalid parameter.
|
API Level: 3
View Source
GetInt64Value(Int32)
Returns the value of the requested column as int64.
Declaration
public long GetInt64Value(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
Type |
Description |
System.Int64 |
|
Exceptions
Type |
Condition |
System.ArgumentException |
Thrown in case of an invalid parameter.
|
API Level: 3
View Source
GetIntValue(Int32)
Returns the value of the requested column as an integer.
Declaration
public int GetIntValue(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
Type |
Description |
System.Int32 |
|
Exceptions
Type |
Condition |
System.ArgumentException |
Thrown in case of an invalid parameter.
|
API Level: 3
View Source
GetRowCount()
Gets the MatrixCursor's row count.
Declaration
public long GetRowCount()
Returns
Type |
Description |
System.Int64 |
|
API Level: 3
View Source
GetStringValue(Int32)
Returns the value of the requested column as a string.
Declaration
public string GetStringValue(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
Type |
Description |
System.String |
|
Exceptions
Type |
Condition |
System.ArgumentException |
Thrown in case of an invalid parameter.
|
API Level: 3
View Source
Next()
Move the MatrixCursor to the next row.
Declaration
Returns
Type |
Description |
System.Boolean |
|
API Level: 3
View Source
Prev()
Move the MatrixCursor to the previous row.
Declaration
Returns
Type |
Description |
System.Boolean |
|
API Level: 3
View Source
Reset()
Move the MatrixCursor to the first row.
Declaration
Returns
Type |
Description |
System.Boolean |
|
API Level: 3
Implements
System.IDisposable