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


IJSONConverterGeometry.ToGeometry Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IJ > IJSONConverterGeometry Interface > IJSONConverterGeometry.ToGeometry Method
ArcGIS Developer Help

IJSONConverterGeometry.ToGeometry Method

Reads geometry object from JSON object.

[Visual Basic .NET]
Public Function ToGeometry ( _
    ByVal pJSONObject As IJSONObject, _
    ByVal geomType As esriGeometryType, _
    ByVal bDefaultHasZs As Boolean, _
    ByVal bDefaultHasMs As Boolean _
) As IGeometry
[C#]
public IGeometry ToGeometry (
    IJSONObject pJSONObject,
    esriGeometryType geomType,
    bool bDefaultHasZs,
    bool bDefaultHasMs
);
[C++]
HRESULT ToGeometry(
  IJSONObject* pJSONObject,
  esriGeometryType geomType,
  VARIANT_BOOL bDefaultHasZs,
  VARIANT_BOOL bDefaultHasMs
);
[C++]
Parameters
pJSONObject [in]

pJSONObject is a parameter of type IJSONObject* geomType [in]
geomType is a parameter of type esriGeometryType bDefaultHasZs
bDefaultHasZs is a parameter of type bool bDefaultHasMs
bDefaultHasMs is a parameter of type bool

Product Availability

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

See Also

IJSONConverterGeometry Interface