Show / Hide Table of Contents

    DataTableExtensions.ImportJson(this DataTable dataTable, string json, int startRow, int endRow, short startProperty) Method

    .NET Standard 2.x

    Import data from a JSON string into the DataTable, and specifies the start and end positions of the rows and starting position of the property.

    Namespace: SnapObjects.Data

    Assembly: SnapObjects.Data.dll

    Syntax

    public static int ImportJson(this DataTable dataTable, string json, int startRow, int endRow, short startProperty)
    

    Parameters

    json System.String

    A string specifying the JSON data.

    The JSON string must comply with the Plain JSON or DataWindow JSON.

    startRow System.Int322

    The zero-based index number of the first row in the buffer that you want to export.

    endRow System.Int322

    The zero-based index number of the last row in the buffer that you want to export.

    startProperty System.Int322

    The zero-based index number of the first property in the buffer that you want to export.

    Returns

    System.Int32

    Returns the number of rows that were imported if it succeeds.

    Examples

    Applies to

    .NET Standard

    2.x

    Back to top Generated by Appeon