Class MatrixCursor
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
-
MatrixCursor
- Implements
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 |
---|---|
ArgumentException | Thrown in case of an invalid parameter. |
InvalidOperationException | Thrown in case of any internal error. |
API Level: 3
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 |
---|---|
ArgumentException | Thrown in case of an invalid parameter. |
API Level: 3
View SourceDispose()
Releases all the resources used by the MatrixCursor class.
Declaration
public void Dispose()
API Level: 3
View SourceDispose(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 |
---|---|---|
Boolean | disposing | true for a normal dispose operation; false to finalize the handle. |
API Level: 3
View SourceFinalize()
Destructor of the MatrixCursor class.
Declaration
protected void Finalize()
GetBlobValue(Int32)
Returns the value of the requested column as a BLOB.
Declaration
public byte[] GetBlobValue(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index |
Returns
Type | Description |
---|---|
Byte[] |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown in case of an invalid parameter. |
API Level: 3
View SourceGetColumnCount()
Gets the column count of the MatrixCursor.
Declaration
public int GetColumnCount()
Returns
Type | Description |
---|---|
Int32 |
API Level: 3
View SourceGetColumnName(Int32)
Returns the column name at the given zero-based column index.
Declaration
public string GetColumnName(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | The target column index. |
Returns
Type | Description |
---|---|
String |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown in case of an invalid parameter. |
API Level: 3
View SourceGetColumnType(Int32)
Returns the column type at the given zero-based column index.
Declaration
public ColumnType GetColumnType(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | Target column index |
Returns
Type | Description |
---|---|
ColumnType |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown in case of an invalid parameter. |
API Level: 3
View SourceGetDoubleValue(Int32)
Returns the value of the requested column as a double.
Declaration
public double GetDoubleValue(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index |
Returns
Type | Description |
---|---|
Double |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown in case of an invalid parameter. |
API Level: 3
View SourceGetInt64Value(Int32)
Returns the value of the requested column as int64.
Declaration
public long GetInt64Value(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index |
Returns
Type | Description |
---|---|
Int64 |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown in case of an invalid parameter. |
API Level: 3
View SourceGetIntValue(Int32)
Returns the value of the requested column as an integer.
Declaration
public int GetIntValue(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index |
Returns
Type | Description |
---|---|
Int32 |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown in case of an invalid parameter. |
API Level: 3
View SourceGetRowCount()
Gets the MatrixCursor's row count.
Declaration
public long GetRowCount()
Returns
Type | Description |
---|---|
Int64 |
API Level: 3
View SourceGetStringValue(Int32)
Returns the value of the requested column as a string.
Declaration
public string GetStringValue(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index |
Returns
Type | Description |
---|---|
String |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown in case of an invalid parameter. |
API Level: 3
View SourceNext()
Move the MatrixCursor to the next row.
Declaration
public bool Next()
Returns
Type | Description |
---|---|
Boolean |
API Level: 3
View SourcePrev()
Move the MatrixCursor to the previous row.
Declaration
public bool Prev()
Returns
Type | Description |
---|---|
Boolean |
API Level: 3
View SourceReset()
Move the MatrixCursor to the first row.
Declaration
public bool Reset()
Returns
Type | Description |
---|---|
Boolean |