ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Core Namespace / Item Class / SetAlias Method
The new value of the alias.

In This Topic
    SetAlias Method
    In This Topic
    Changes the alias value on the given item. This method will return false if the item is not a folder connection.
    Syntax
    public bool SetAlias( 
       string newAlias
    )
    Public Function SetAlias( _
       ByVal newAlias As String _
    ) As Boolean

    Parameters

    newAlias
    The new value of the alias.

    Return Value

    True if the alias value is successfully changed.
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also