Table of Contents

Class FeatureSourceColumn

Namespace
ThinkGeo.Core
Assembly
ThinkGeo.Core.dll

This class represents a column contained within a FeatureSource.

public class FeatureSourceColumn
Inheritance
FeatureSourceColumn
Derived
Inherited Members

Remarks

A FeatureSource is typically represented by a number of InternalFeatures and their column data. This column represents the characteristics of that data.

Constructors

FeatureSourceColumn()

This is the constructor to create a FeatureSourceColumn.

public FeatureSourceColumn()

Remarks

This constructor is the default, but should not be used.

FeatureSourceColumn(string)

This is the constructor to create a FeatureSourceColumn.

public FeatureSourceColumn(string columnName)

Parameters

columnName string

This parameter represents the name of the column.

Remarks

This is the constructor that should be used.

FeatureSourceColumn(string, string, int)

This is the constructor to create a FeatureSourceColumn.

public FeatureSourceColumn(string columnName, string typeName, int maxLength)

Parameters

columnName string

This parameter represents the name of the column.

typeName string

This parameter represents the type name of the column.

maxLength int

This parameter represents the maximum length of the column.

Remarks

This is the constructor that should be used.

Properties

ColumnName

This property returns the name of the column.

public string ColumnName { get; set; }

Property Value

string

Remarks

None

MaxLength

This property returns the maximum length of the column.

public int MaxLength { get; set; }

Property Value

int

Remarks

The maximum length is user defined and not in any way enforced in our default FeatureSource implementation. It is mainly for display purposes or when dealing with a known Feature Source type.

TypeName

This property returns the type name of the column.

public string TypeName { get; set; }

Property Value

string

Remarks

This property is freeform and the type name is not tied to anything. It is wise to try and use familiar type names such as string, integer, date, etc., although it may not fit every different type of FeatureSource. We suggest thar you avoid using this property unless you know the types beforehand or simply want them for display purposes.

Methods

ToString()

Returns column name of FeatureSourceColumn

public override string ToString()

Returns

string

Returns column name of FeatureSourceColumn