ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.Data Namespace / CodedValueDomain Class / GetCodedValue Method
Name for which a coded value should be returned.

In This Topic
    GetCodedValue Method
    In This Topic
    Gets the coded value that matches the given name. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public object GetCodedValue( 
       string name
    )
    Public Function GetCodedValue( _
       ByVal name As String _
    ) As Object

    Parameters

    name
    Name for which a coded value should be returned.

    Return Value

    A coded value for the name. The type of object returned depends on the type of field associated with the domain; for example, if the domain applies to Text fields, the value returned will be a string. If name does not exist in the domain, null is returned.
    Exceptions
    ExceptionDescription
    A geodatabase-related exception has occurred.
    Remarks
    The name is often the human readable description of the code.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also