ArcGIS Pro 2.7 API Reference Guide
GetCodedValuePairs Method

ArcGIS.Core.Data Namespace > CodedValueDomain Class : GetCodedValuePairs Method
Gets a SortedList of the coded values (value and name) maintained by this CodedValueDomain. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public SortedList<object,string> GetCodedValuePairs()
Public Function GetCodedValuePairs() As SortedList(Of Object,String)

Return Value

A SortedList of the coded values (value and name).
Exceptions
ExceptionDescription
A geodatabase-related exception has occurred.
Remarks
In the event the domain is empty, i.e., the domain has no value, an empty SortedList is returned.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

CodedValueDomain Class
CodedValueDomain Members