Show / Hide Table of Contents

Class CodedValueDomain

Specifies an explicit set of valid values for a Field.

Inheritance
System.Object
Domain
CodedValueDomain
Domain.Name
Domain.FieldType
Domain.ToJson()
Domain.FromJson(String)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Esri.ArcGISRuntime.Data
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class CodedValueDomain : Domain
Remarks

A coded value domain consists of a collection of coded values that are saved in the dataset. When a user is editing data, you can present the list of coded values for the fields (attributes) they edit, or validate their input values against the coded value domain before changes are saved. This ensures that the user maintains data integrity by only applying values that are in the CodedValues.

You can create a coded value domain in a mobile geodatabase, if the mobile geodatabase was created in ArcGIS Pro or using CreateAsync(String). To create a CodedValueDomain, you can create a CodedValueDomainDescription that has a collection of CodedValueDescription, by using CodedValueDomainDescription(String, FieldType, IEnumerable<CodedValueDescription>). Next, you create the CodedValueDomain by calling CreateDomainAsync(DomainDescription) with the CodedValueDomainDescription.

Properties

Name Description
CodedValues

Gets the set of valid values.

Applies to

TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7

Relevant samples

Configure subnetwork trace: Get a server-defined trace configuration for a given tier and modify its traversability scope, add new condition barriers and control what is included in the subnetwork trace result.
In This Article
Back to top Copyright © 2022 Esri.