ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.Data Namespace / CodedValueDomain Class / GetCodedValuePairs Method

In This Topic
    GetCodedValuePairs Method
    In This Topic
    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 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also