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


ICadastralUnitConversion.ConvertString Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (GeoDatabaseExtensions)  

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