Adds the specified GeographicTransformation to the collection, replacing a GeographicTransformation existing in the collection with the same pair of CoordinateSystems.

Namespace:  ESRI.ArcGISExplorer.Geometry

Assembly:  ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)

Syntax

C#
public void AddReplacing(
	GeographicTransformation gt
)
Visual Basic (Declaration)
Public Sub AddReplacing ( _
	gt As GeographicTransformation _
)

Parameters

gt
Type: ESRI.ArcGISExplorer.Geometry..::.GeographicTransformation

The transformation to add to the collection; if an existing GeographicTransformation in the collection has the same CoordinateSystem pair, then the existing object will be replaced with this new transformation object.

Remarks

This method provides an alternative to the Add(GeographicTransformation) method. Instead of throwing an exception if a transformation already exists in the collection for the coordinate system pair, this method will replace the transformation already in the collection with the new specified transformation. If this method is called with a transformation for which there is no matching coordinate system pair in the collection, the new transformation will be added to the collection without any existing transformations being removed.

See Also