ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.Geometry Namespace / EnvelopeBuilderEx Class / FromJson Method
JSON representation of an envelope.
Example

In This Topic
    FromJson Method (EnvelopeBuilderEx)
    In This Topic
    Creates a new instance of the Envelope class from an ArcGIS JSON geometry representation.
    Syntax
    Public Shared Function FromJson( _
       ByVal jsonString As String _
    ) As Envelope
    public static Envelope FromJson( 
       string jsonString
    )

    Parameters

    jsonString
    JSON representation of an envelope.

    Return Value

    Exceptions
    ExceptionDescription
    The jsonString is empty or null.
    JSON string is invalid or does not represent an Envelope string.
    Example
    Construct an Envelope - from a JSON string
    {
      string jsonString = "{ \"xmin\" : 1, \"ymin\" : 2,\"xmax\":3,\"ymax\":4,\"spatialReference\":{\"wkid\":4326}}";
      Envelope envFromJson = EnvelopeBuilderEx.FromJson(jsonString);
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also