Obsolete Members for Unit

  • Unit
  • The following members of class Unit are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

    Public Functions

    (obsolete) int unitId() const

    Static Public Members

    (obsolete) Esri::ArcGISRuntime::Unit fromUnitId(int unitId)

    Member Function Documentation

    [static] Esri::ArcGISRuntime::Unit Unit::fromUnitId(int unitId)

    This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

    Constructs a new %Unit based on the unitId corresponding to desired %Unit. Returns A new %Unit instance which will be one of AreaUnit, AngularUnit, LinearUnit or null if it could not be created.

    Note: This is deprecated in 100.14. Use Unit::fromWkid instead. since Esri::ArcGISRuntime 100.14

    int Unit::unitId() const

    This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

    Gets the unit ID, which is unique across all types of units.

    Note: This is deprecated in 100.14. Use Unit::wkid instead. since Esri::ArcGISRuntime 100.14

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

    You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

    Your ArcGIS portal

    Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

    Your ArcGIS Location Platform dashboard

    Manage billing, monitor service usage, and access additional resources.

    Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

    Close