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
    object
    MatrixCursor
    Implements
    System.IDisposable
    ICursor

    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
    public void Dispose()
    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
    Type Description
    byte[]
    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
    Type Description
    int
    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
    Type Description
    string
    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
    Type Description
    ColumnType
    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
    Type Description
    double
    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
    Type Description
    long
    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
    Type Description
    int
    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
    Type Description
    long
    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
    Type Description
    string
    Exceptions
    Type Condition
    System.ArgumentException

    Thrown in case of an invalid parameter.

    View Source

    Next()

    Move the MatrixCursor to the next row.

    Declaration
    public bool Next()
    Returns
    Type Description
    bool
    View Source

    Prev()

    Move the MatrixCursor to the previous row.

    Declaration
    public bool Prev()
    Returns
    Type Description
    bool
    View Source

    Reset()

    Move the MatrixCursor to the first row.

    Declaration
    public bool Reset()
    Returns
    Type Description
    bool

    Implements

    System.IDisposable
    ICursor
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX