Show / Hide Table of Contents

Method FromJson

FromJson(string)

Creates a label definition from an ArcGIS JSON label representation (labelingInfo).

Declaration
public static LabelDefinition? FromJson(string json)
Parameters
Type Name Description
string json

The JSON string for the label definition.

Returns
Type Description
LabelDefinition

A new LabelDefinition object.

Exceptions
Type Condition
ArgumentNullException

json is null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 300.0
.NET Windows100.13 - 300.0
.NET Android200.0 - 300.0
.NET iOS200.0 - 300.0
.NET Framework100.1 - 200.8
Xamarin.Android100.1 - 100.15
Xamarin.iOS100.1 - 100.15
UWP100.1 - 200.8
Relevant samples
Display subtype feature layer: Displays a composite layer of all the subtype values in a feature class.
In this article
Provide feedback
Back to top Copyright © 2025 Esri.