ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / LayerDocument Class / LoadFromPath Method
A string represents a file path.

In This Topic
    LoadFromPath Method
    In This Topic
    Loads from Layer File (.lyrx) This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Sub LoadFromPath( _
       ByVal layerXFile As String _
    ) 
    public void LoadFromPath( 
       string layerXFile
    )

    Parameters

    layerXFile
    A string represents a file path.
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also