This document is archived and information here might be outdated.  Recommended version.


ICadastralUnitConversion.ConvertString Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > GeodatabaseExtensions > ESRI.ArcGIS.GeoDatabaseExtensions > Interfaces > IC > ICadastralUnitConversion Interface > ICadastralUnitConversion.ConvertString Method
ArcGIS Developer Help

ICadastralUnitConversion.ConvertString Method

Convert units of string value to double. Example: '55 ft'. If the unit suffix string is missing, the default unit is used.

[Visual Basic .NET]
Public Function ConvertString ( _
    ByVal val As String, _
    ByVal defaultUnit As esriCadastralDistanceUnits, _
    ByVal outputUnit As esriCadastralDistanceUnits _
) As Double
[C#]
public double ConvertString (
    string val,
    esriCadastralDistanceUnits defaultUnit,
    esriCadastralDistanceUnits outputUnit
);
[C++]
HRESULT ConvertString(
  BSTR val,
  esriCadastralDistanceUnits defaultUnit,
  esriCadastralDistanceUnits outputUnit
);
[C++]
Parameters
val [in]

val is a parameter of type BSTR defaultUnit [in]
defaultUnit is a parameter of type esriCadastralDistanceUnits outputUnit [in]
outputUnit is a parameter of type esriCadastralDistanceUnits

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also

ICadastralUnitConversion Interface