Show / Hide Table of Contents

Method CreateDomainAsync

CreateDomainAsync(DomainDescription)

Creates a new domain in the geodatabase.

Declaration
public Task<Domain> CreateDomainAsync(DomainDescription domainDescription)
Parameters
Type Name Description
DomainDescription domainDescription

The description of the domain to create.

Returns
Type Description
System.Threading.Tasks.Task<Domain>

The created Domain.

Remarks

You can create a new domain in a mobile geodatabase that was created in ArcGIS Pro or using CreateAsync(String). The domain description can be a CodedValueDomainDescription or a RangeDomainDescription.

In terms of the domain description, the Name must not exist in the geodatabase and FieldType must be valid. See DomainDescription, for additional constraints.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.14 - 200.8
.NET100.14 - 200.8
.NET Windows100.14 - 200.8
.NET Android200.0 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.14 - 200.8
Xamarin.Android100.14 - 100.15
Xamarin.iOS100.14 - 100.15
UWP100.14 - 200.8
In This Article
Back to top Copyright © 2022 Esri.