ReadOperator.ReadOperator Constructors
Initializes a new instance of the ReadOperator class.
Overload List
Name | Description | |
---|---|---|
Public method | ReadOperator() | Initializes a new empty instance of the ReadOperator class. |
Public method | ReadOperator(DataSet dataSet) | Initializes a new instance of the ReadOperator class that reads from the specified DataSet. |
Public method | ReadOperator(DataSet dataSet, Query query) | Initializes a new instance of the ReadOperator class that reads from the specified DataSet using a Query. |
ReadOperator()
Initializes a new empty instance of the ReadOperator class.Syntax
public ReadOperator ()
ReadOperator(DataSet dataSet)
Initializes a new instance of the ReadOperator class that reads from the specified DataSet.Syntax
public ReadOperator (
DataSet dataSet
)
Parameters
dataSet
Type: DataSet
The data set to read features from.
The data set to read features from.
Example
// Create a ReadOperator, that reads from the specified DataSet
public static ReadOperator CreateReadOperator(DataSet dataSet)
{
// Create a ReadOperator, that reads from the DataSet
return new ReadOperator(dataSet);
}
ReadOperator(DataSet dataSet, Query query)
Initializes a new instance of the ReadOperator class that reads from the specified DataSet using a Query.Syntax
public ReadOperator (
DataSet dataSet,
Query query
)
Parameters
dataSet
Type: DataSet
The data set to read features from.
The data set to read features from.
query
Type: Query
A query that specifies details about which features to read.
A query that specifies details about which features to read.
Example
// Create a ReadOperator, that reads everything but rasters from the specified DataSet
public static ReadOperator CreateReadOperatorWhichDoesNotReadRasters(DataSet dataSet)
{
// Create a query to filter out rasters
Query query = new Query();
query.ReadRasters = false;
// Create a ReadOperator, that reads from the DataSet
return new ReadOperator(dataSet, query);
}
Platforms
Windows, Linux, Android