ArcGIS Pro 2.6 API Reference Guide
LayerDocument Constructor(String)

ArcGIS.Desktop.Mapping Namespace > LayerDocument Class > LayerDocument Constructor : LayerDocument Constructor(String)
A string represents a file path for an existing Layer File (.lyrx).
Creates LayerDocument instance from a Layer File (.lyrx). This constructor must be called on the MCT. Use QueuedTask.Run.
Syntax
public LayerDocument( 
   string layerXFilePath
)
Public Function New( _
   ByVal layerXFilePath As String _
)

Parameters

layerXFilePath
A string represents a file path for an existing Layer File (.lyrx).
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

LayerDocument Class
LayerDocument Members
Overload List