ArcGIS Pro 3.7 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 Function GetCodedValuePairs() As SortedList(Of Object,String)
    public SortedList<object,string> GetCodedValuePairs()

    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 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also