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

In This Topic
    GetName(Object) Method
    In This Topic
    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
    )
    Public Overloads Function GetName( _
       ByVal value As Object _
    ) As String

    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.0 or higher.
    See Also