This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > GeoDatabaseExtensions > ESRI.ArcGIS.GeoDatabaseExtensions > Interfaces > IC > ICadastralUnitConversion Interface > ICadastralUnitConversion.ConvertString Method (ArcObjects .NET 10.4 SDK) |
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,
double* pVal
);
[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 pVal [out, retval] pVal is a parameter of type double