ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data Namespace / CodedValueDomain Class / GetName Method / GetName(Object) Method
Coded value for which a name should be returned.
Version

GetName(Object) Method
Gets the name of a given coded value. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public string GetName( 
   object value
)

Parameters

value
Coded value for which a name should be returned.

Return Value

A name for the coded value. If value does not exist in the domain, an empty string is returned.
Exceptions
ExceptionDescription
A geodatabase-related exception has occurred.
Remarks
The name is often the human readable description of the coded value.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also