Customizable classes, Mapinfo.data.provider namespace, Ado.net – Pitney Bowes MapXtreme User Manual
Page 471: Engine.customproperties

Appendix B: Customizing MapXtreme
Customizable Classes
MapXtreme v7.1
478
Developer Guide
Customizable Classes
The following classes have been designed to facilitate sub-classing to create custom subclasses
that more closely fit your development needs.
•
MapInfo.Data.Provider Namespace
•
•
•
•
FeatureStyleModifier or FeatureOverrideStyleModifier
•
•
•
•
•
•
WorkSpacePersistence and WorkSpaceLoader
MapInfo.Data.Provider Namespace
MapXtreme provides an extensible data provider model for accessing data in forms that MapXtreme
cannot natively understand. This model requires an extensive amount of development and should
be undertaken only when the other methods of data access provided by MapXtreme is insufficient.
The model is explained in
Appendix D: Extensible Data Providers
ADO.NET
Before attempting to implement your own data provider using the Extensible Data Provider model
discussed above, consider the MapInfo.Data.TableInfoAdoNet class. This class provides access to
non-mappable data for which we have not provided a dedicated data source. See the Developer
Reference for more information.
Engine.CustomProperties
Use the CustomProperties class to add custom information to an object. The different kinds of
objects that CustomProperties can add to are: FeatureCollection, FeatureStyleModifer,
GmlFeatureCollection, GroupLayer, IFeatureCollection, IMapLayer, ISession, LabelModifier,
LabelSource, Legend, LegendFrame, Map, MapLayer, MapTool, MultiFeatureCollection,
Session.PooledSession, and Table. Add information using the Add method. Retrieve information
using the Item method. CustomProperties can be of any type.
L
Do not add MapXtreme objects directly into a CustomProperties collection. Doing so causes
errors during serialization. Instead add an Alias. For example, do not add a Map to a
CustomProperties collection. Instead add Map.Alias.
Here is an example of how CustomProperties is used to add and retrieve properties: