Argentini.Halide.H3Reader.ListSchema C# (CSharp) Метод

ListSchema() публичный Метод

Retrieve the columns and their schema information as an ASCII text string for output.
public ListSchema ( ) : string
Результат string
        public string ListSchema()
        {
            string output = "Schema information is not available. Instantiate the Smartreader with a true value to use schema-based features.";

            if (schemaAvailable)
            {
                output = "";

                try
                {
                    foreach (System.Data.DataRow myField in schemaTable.Rows)
                    {
                        //For each property of the field...
                        foreach (System.Data.DataColumn myProperty in schemaTable.Columns)
                        {
                            //Display the field name and value.
                            output += myProperty.ColumnName + " = " + myField[myProperty].ToString() + "\r\n";
                        }

                        output += "\r\n";
                    }
                }

                catch (Exception err)
                {
                    _lastSqlError = err;
                }
            }

            return output;
        }